From dfe662ad4222ea6eed2bce4b18aaa4e343fd4af1 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Tue, 11 Jul 2017 17:55:04 +0200 Subject: Fix propagating changes within jail wrapper Signed-off-by: Robin Appelman --- lib/private/Files/Storage/Wrapper/Jail.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'lib/private/Files/Storage/Wrapper/Jail.php') 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; + } } -- cgit v1.2.3