summaryrefslogtreecommitdiffstats
path: root/lib/filecache.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-10-05 22:35:51 +0200
committerRobin Appelman <icewind@owncloud.com>2012-10-05 22:35:51 +0200
commit5d196f14db352f6f0a7e448a87787fbc38ab6e90 (patch)
treed15a3c576e343d9e83135e54b1b7e89440d5e742 /lib/filecache.php
parent4f7c7c615e6eb0e3818b28a24d8cf77cd7546e19 (diff)
downloadnextcloud-server-5d196f14db352f6f0a7e448a87787fbc38ab6e90.tar.gz
nextcloud-server-5d196f14db352f6f0a7e448a87787fbc38ab6e90.zip
set folder size to 0 when scanning the filesystem
Diffstat (limited to 'lib/filecache.php')
-rw-r--r--lib/filecache.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/filecache.php b/lib/filecache.php
index 305ba035fb5..d68525d9a54 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -420,6 +420,7 @@ class OC_FileCache{
$mimetype=$view->getMimeType($path);
$stat=$view->stat($path);
if($mimetype=='httpd/unix-directory') {
+ $stat['size'] = 0;
$writable=$view->is_writable($path.'/');
}else{
$writable=$view->is_writable($path);