aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-02-29 17:43:23 +0100
committerRobin Appelman <icewind@owncloud.com>2016-02-29 17:47:09 +0100
commit003a686c1b362b76d3c08d9566cc187ceff0ecd7 (patch)
treea849a18c4588faba2584c83a36661e86c31e084a /lib/private/files/storage
parent52d217d77519ed95a18237b09a351f83a0ae7f47 (diff)
downloadnextcloud-server-003a686c1b362b76d3c08d9566cc187ceff0ecd7.tar.gz
nextcloud-server-003a686c1b362b76d3c08d9566cc187ceff0ecd7.zip
ignore encryption keys for propagation
Diffstat (limited to 'lib/private/files/storage')
-rw-r--r--lib/private/files/storage/home.php18
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
*/