summaryrefslogtreecommitdiffstats
path: root/lib/private/files/cache/updater.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-02-28 14:23:07 +0100
committerRobin Appelman <icewind@owncloud.com>2014-02-28 14:23:07 +0100
commitda386aad5950235d6d1089f18b5ef4260057d78e (patch)
tree8fae5c0bcf5209cd477b181915f5dfa70228fa68 /lib/private/files/cache/updater.php
parent8a93a2e7d50ab8526e551cf2677582492b835f82 (diff)
downloadnextcloud-server-da386aad5950235d6d1089f18b5ef4260057d78e.tar.gz
nextcloud-server-da386aad5950235d6d1089f18b5ef4260057d78e.zip
Allow re-using already known fileinfo when calculating folder sizes
Diffstat (limited to 'lib/private/files/cache/updater.php')
-rw-r--r--lib/private/files/cache/updater.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/files/cache/updater.php b/lib/private/files/cache/updater.php
index 7a45b9e9e96..666d5dd7fe5 100644
--- a/lib/private/files/cache/updater.php
+++ b/lib/private/files/cache/updater.php
@@ -38,8 +38,8 @@ class Updater {
if ($storage) {
$cache = $storage->getCache($internalPath);
$scanner = $storage->getScanner($internalPath);
- $scanner->scan($internalPath, Scanner::SCAN_SHALLOW);
- $cache->correctFolderSize($internalPath);
+ $data = $scanner->scan($internalPath, Scanner::SCAN_SHALLOW);
+ $cache->correctFolderSize($internalPath, $data);
self::correctFolder($path, $storage->filemtime($internalPath));
self::correctParentStorageMtime($storage, $internalPath);
}