Skip to content
Snippets Groups Projects
Commit bc91c5c2 authored by Roeland Jago Douma's avatar Roeland Jago Douma
Browse files

Set proper mimetype for directories

parent a0725485
Branches
No related tags found
No related merge requests found
......@@ -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,
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment