Merge pull request #18077 from owncloud/fix_18055

Set proper mimetype for directories
This commit is contained in:
Morris Jobke 2015-08-05 23:38:02 +02:00
commit 7f44b0fd18

View file

@ -83,7 +83,7 @@ class Helper
$i = array(
'name' => $id,
'mtime' => $timestamp,
'mimetype' => \OC_Helper::getFileNameMimeType($id),
'mimetype' => $view->is_dir($dir . '/' . $entryName) ? 'httpd/unix-directory' : \OC_Helper::getFileNameMimeType($id),
'type' => $view->is_dir($dir . '/' . $entryName) ? 'dir' : 'file',
'directory' => ($dir === '/') ? '' : $dir,
);