diff --git a/apps/files_trashbin/lib/Helper.php b/apps/files_trashbin/lib/Helper.php index c570a5f4d231..378b7f412907 100644 --- a/apps/files_trashbin/lib/Helper.php +++ b/apps/files_trashbin/lib/Helper.php @@ -114,7 +114,9 @@ public static function formatFileInfos($fileInfos) { $entry['id'] = $id++; $entry['etag'] = $entry['mtime']; // add fake etag, it is only needed to identify the preview image $entry['permissions'] = \OCP\Constants::PERMISSION_READ; - $entry['mimetype'] = \OC::$server->getMimeTypeDetector()->detectPath($entry['name']); + if ($entry['mimetype'] !== 'httpd/unix-directory') { + $entry['mimetype'] = \OC::$server->getMimeTypeDetector()->detectPath($entry['name']); + } $files[] = $entry; } return $files;