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 8f82353 commit dc34064
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/private/Files/Cache/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -781,7 +781,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 dc34064

Please sign in to comment.