We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 21829cc commit f4929bcCopy full SHA for f4929bc
lib/middleware/serveIndex.js
@@ -49,7 +49,7 @@ function createResourceInfo(resource) {
49
const isDir = stat.isDirectory();
50
return {
51
path: resource.getPath() + (isDir ? "/" : ""),
52
- name: resource._name + (isDir ? "/" : ""),
+ name: resource.getName() + (isDir ? "/" : ""),
53
isDir: isDir,
54
mimetype: isDir ? "" : getMimeType(resource),
55
lastModified: new Date(stat.mtime).toLocaleString(),
0 commit comments