summaryrefslogtreecommitdiffstats
path: root/lib/private/files
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-05 13:58:14 +0100
committerVincent Petry <pvince81@owncloud.com>2013-11-05 13:58:14 +0100
commite3868ba118777fc21172b75a516334e107769401 (patch)
tree142a881a1fdbdf5489165c09f39326ed3432499c /lib/private/files
parentd48ba5a5bf0668690e54d4ed68f8aa31d8946cf9 (diff)
downloadnextcloud-server-e3868ba118777fc21172b75a516334e107769401.tar.gz
nextcloud-server-e3868ba118777fc21172b75a516334e107769401.zip
Fixed watcher to also update the owner's folder sizes
Note that the root folder size is mandatory for quota calculation.
Diffstat (limited to 'lib/private/files')
-rw-r--r--lib/private/files/cache/watcher.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/private/files/cache/watcher.php b/lib/private/files/cache/watcher.php
index 8bfd4602f3a..58f624c8990 100644
--- a/lib/private/files/cache/watcher.php
+++ b/lib/private/files/cache/watcher.php
@@ -15,17 +15,17 @@ class Watcher {
/**
* @var \OC\Files\Storage\Storage $storage
*/
- private $storage;
+ protected $storage;
/**
* @var Cache $cache
*/
- private $cache;
+ protected $cache;
/**
* @var Scanner $scanner;
*/
- private $scanner;
+ protected $scanner;
/**
* @param \OC\Files\Storage\Storage $storage
@@ -40,6 +40,7 @@ class Watcher {
* check $path for updates
*
* @param string $path
+ * @return boolean true if path was updated, false otherwise
*/
public function checkUpdate($path) {
$cachedEntry = $this->cache->get($path);
@@ -53,7 +54,9 @@ class Watcher {
$this->cleanFolder($path);
}
$this->cache->correctFolderSize($path);
+ return true;
}
+ return false;
}
/**