(path: string)
| 105 | } |
| 106 | |
| 107 | function getBaseName(path: string): string { |
| 108 | if (path === "/") { |
| 109 | return "/"; |
| 110 | } |
| 111 | const idx = path.lastIndexOf("/"); |
| 112 | return idx < 0 ? path : path.slice(idx + 1); |
| 113 | } |
| 114 | |
| 115 | function getMimeType(path: string, isdir: boolean): string { |
| 116 | if (isdir) { |
no outgoing calls
no test coverage detected