diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-02-28 14:23:07 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-02-28 14:23:07 +0100 |
commit | da386aad5950235d6d1089f18b5ef4260057d78e (patch) | |
tree | 8fae5c0bcf5209cd477b181915f5dfa70228fa68 /apps/files_sharing | |
parent | 8a93a2e7d50ab8526e551cf2677582492b835f82 (diff) | |
download | nextcloud-server-da386aad5950235d6d1089f18b5ef4260057d78e.tar.gz nextcloud-server-da386aad5950235d6d1089f18b5ef4260057d78e.zip |
Allow re-using already known fileinfo when calculating folder sizes
Diffstat (limited to 'apps/files_sharing')
-rw-r--r-- | apps/files_sharing/lib/cache.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php index 4b0da0b002d..579780dcd2b 100644 --- a/apps/files_sharing/lib/cache.php +++ b/apps/files_sharing/lib/cache.php @@ -354,9 +354,10 @@ class Shared_Cache extends Cache { * get the size of a folder and set it in the cache * * @param string $path + * @param array $entry (optional) meta data of the folder * @return int */ - public function calculateFolderSize($path) { + public function calculateFolderSize($path, $entry = null) { if ($cache = $this->getSourceCache($path)) { return $cache->calculateFolderSize($this->files[$path]); } |