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 7139de2a6e
commit e65ea6a8b7
1 changed files with 3 additions and 1 deletions

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