don't increase the size of the users home folder twice

This commit is contained in:
Robin Appelman 2012-10-13 14:32:58 +02:00
parent 4c4fd36bdd
commit 93cbd96662

View file

@ -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);
}
}
/**