From 5d196f14db352f6f0a7e448a87787fbc38ab6e90 Mon Sep 17 00:00:00 2001 From: Robin Appelman Date: Fri, 5 Oct 2012 22:35:51 +0200 Subject: [PATCH] set folder size to 0 when scanning the filesystem --- lib/filecache.php | 1 + 1 file changed, 1 insertion(+) 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); -- 2.39.5