summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/Wrapper/Jail.php
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2017-07-11 17:55:04 +0200
committerRobin Appelman <robin@icewind.nl>2017-07-11 17:55:04 +0200
commitdfe662ad4222ea6eed2bce4b18aaa4e343fd4af1 (patch)
tree73226de7eab81b508c290c4d70cb421441c289c1 /lib/private/Files/Storage/Wrapper/Jail.php
parent4153e1de795d0977756583e5845f849662ed6528 (diff)
downloadnextcloud-server-dfe662ad4222ea6eed2bce4b18aaa4e343fd4af1.tar.gz
nextcloud-server-dfe662ad4222ea6eed2bce4b18aaa4e343fd4af1.zip
Fix propagating changes within jail wrapper
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/private/Files/Storage/Wrapper/Jail.php')
-rw-r--r--lib/private/Files/Storage/Wrapper/Jail.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/private/Files/Storage/Wrapper/Jail.php b/lib/private/Files/Storage/Wrapper/Jail.php
index 91e8e5ed3c9..4fa2428c968 100644
--- a/lib/private/Files/Storage/Wrapper/Jail.php
+++ b/lib/private/Files/Storage/Wrapper/Jail.php
@@ -25,6 +25,7 @@
namespace OC\Files\Storage\Wrapper;
use OC\Files\Cache\Wrapper\CacheJail;
+use OC\Files\Cache\Wrapper\JailPropagator;
use OCP\Lock\ILockingProvider;
/**
@@ -488,4 +489,16 @@ class Jail extends Wrapper {
}
return $this->getWrapperStorage()->moveFromStorage($sourceStorage, $sourceInternalPath, $this->getUnjailedPath($targetInternalPath));
}
+
+ public function getPropagator($storage = null) {
+ if (isset($this->propagator)) {
+ return $this->propagator;
+ }
+
+ if (!$storage) {
+ $storage = $this;
+ }
+ $this->propagator = new JailPropagator($storage, \OC::$server->getDatabaseConnection());
+ return $this->propagator;
+ }
}