set folder size to 0 when scanning the filesystem

This commit is contained in:
Robin Appelman 2012-10-05 22:35:51 +02:00
parent 4f7c7c615e
commit 5d196f14db

View file

@ -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);