diff --git a/lib/private/Files/Cache/Cache.php b/lib/private/Files/Cache/Cache.php index 7b42cc2aa5704..6072d98cea736 100644 --- a/lib/private/Files/Cache/Cache.php +++ b/lib/private/Files/Cache/Cache.php @@ -3,6 +3,7 @@ * @copyright Copyright (c) 2016, ownCloud, Inc. * * @author Andreas Fischer + * @author Ari Selseng * @author Artem Kochnev * @author Björn Schießle * @author Florin Peter @@ -781,7 +782,9 @@ public function correctFolderSize($path, $data = null) { if ($parent === '.' or $parent === '/') { $parent = ''; } - $this->correctFolderSize($parent); + if ($this->getStatus($parent) !== self::SHALLOW) { + $this->correctFolderSize($parent); + } } }