Skip to content

Commit

Permalink
Avoid calculating folder size for parent that also needs proper scan.
Browse files Browse the repository at this point in the history
Signed-off-by: Ari Selseng <ari@selseng.net>
  • Loading branch information
ariselseng committed Mar 1, 2019
1 parent 90f695f commit eb6e8fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/private/Files/Cache/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* @copyright Copyright (c) 2016, ownCloud, Inc.
*
* @author Andreas Fischer <bantu@owncloud.com>
* @author Ari Selseng <ari@selseng.net>
* @author Artem Kochnev <MrJeos@gmail.com>
* @author Björn Schießle <bjoern@schiessle.org>
* @author Florin Peter <github@florin-peter.de>
Expand Down Expand Up @@ -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);
}
}
}

Expand Down

0 comments on commit eb6e8fe

Please sign in to comment.