diff --git a/lib/filecache/update.php b/lib/filecache/update.php index 1b81f70d77..4a5ea873b1 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); + } } /**