diff options
author | Robin Appelman <icewind@owncloud.com> | 2012-10-13 14:32:58 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2012-10-13 14:32:58 +0200 |
commit | e65ea6a8b7360066eaabf172087755f2cc607598 (patch) | |
tree | 299cb88516e81606a48f1bdfe8dce8f88286c9d8 | |
parent | 7139de2a6e3e80fd54a61a1aaa8529d9f6883f3e (diff) | |
download | nextcloud-server-e65ea6a8b7360066eaabf172087755f2cc607598.tar.gz nextcloud-server-e65ea6a8b7360066eaabf172087755f2cc607598.zip |
don't increase the size of the users home folder twice
-rw-r--r-- | lib/filecache/update.php | 4 |
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); + } } /** |