diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-11-11 06:16:51 -0800 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-11-11 06:16:51 -0800 |
commit | 55331479cdd607089ad898676bedc84ea66cafce (patch) | |
tree | a360b9aef4cdb100edd58d0db78144e75c3714dd /lib | |
parent | e431ba5ce8b9c340ba123a221342d0b1398e2b69 (diff) | |
parent | da126f1692cffa30817f99e0d23fa25db6952801 (diff) | |
download | nextcloud-server-55331479cdd607089ad898676bedc84ea66cafce.tar.gz nextcloud-server-55331479cdd607089ad898676bedc84ea66cafce.zip |
Merge pull request #5701 from owncloud/sharing-updateownerfoldersizes
Fixed watcher to also update the owner's folder sizes
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/cache/watcher.php | 9 |
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; } /** |