From: Robin Appelman Date: Sat, 13 Oct 2012 12:32:58 +0000 (+0200) Subject: don't increase the size of the users home folder twice X-Git-Tag: v5.0.0alpha1~766 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=93cbd96662c1702bb707e641519c776504182d4a;p=nextcloud-server.git don't increase the size of the users home folder twice --- diff --git a/lib/filecache/update.php b/lib/filecache/update.php index 1b81f70d77b..4a5ea873b17 100644 --- a/lib/filecache/update.php +++ b/lib/filecache/update.php @@ -174,7 +174,9 @@ class OC_FileCache_Update{ }else{ $size=OC_FileCache::scanFile($path, $root); } - OC_FileCache::increaseSize(dirname($path), $size-$cachedSize, $root); + if($path !== '' and $path !== '/'){ + OC_FileCache::increaseSize(dirname($path), $size-$cachedSize, $root); + } } /**