mirror of
https://github.com/nextcloud/server.git
synced 2025-10-26 19:21:34 +00:00
Set proper mimetype for directories
This commit is contained in:
parent
a07254856c
commit
bc91c5c2de
@ -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,
|
||||
);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user