summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-13 14:32:58 +0200
committerRobin Appelman <icewind@owncloud.com>2012-10-13 14:52:58 +0200
commit93cbd96662c1702bb707e641519c776504182d4a (patch)
tree7bb1cd160991c4e1f293baa4e5348174b925f957
parent4c4fd36bddb9fa0e7bd40e195deb250e19d31add (diff)
downloadnextcloud-server-93cbd96662c1702bb707e641519c776504182d4a.tar.gz
nextcloud-server-93cbd96662c1702bb707e641519c776504182d4a.zip
don't increase the size of the users home folder twice
-rw-r--r--lib/filecache/update.php4
1 files changed, 3 insertions, 1 deletions
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);
+ }
}
/**