diff options
Diffstat (limited to 'lib/private/files/storage/home.php')
-rw-r--r-- | lib/private/files/storage/home.php | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/private/files/storage/home.php b/lib/private/files/storage/home.php index 35a7e8360f3..9b98f2f7e12 100644 --- a/lib/private/files/storage/home.php +++ b/lib/private/files/storage/home.php @@ -24,6 +24,7 @@ */ namespace OC\Files\Storage; +use OC\Files\Cache\HomePropagator; /** * Specialized version of Local storage for home directory usage @@ -77,6 +78,23 @@ class Home extends Local implements \OCP\Files\IHomeStorage { } /** + * get a propagator instance for the cache + * + * @param \OC\Files\Storage\Storage (optional) the storage to pass to the watcher + * @return \OC\Files\Cache\Propagator + */ + public function getPropagator($storage = null) { + if (!$storage) { + $storage = $this; + } + if (!isset($this->propagator)) { + $this->propagator = new HomePropagator($storage); + } + return $this->propagator; + } + + + /** * Returns the owner of this home storage * @return \OC\User\User owner of this home storage */ |