(path: string)
| 94 | } |
| 95 | |
| 96 | function getDirName(path: string): string { |
| 97 | if (path === "/") { |
| 98 | return "/"; |
| 99 | } |
| 100 | const idx = path.lastIndexOf("/"); |
| 101 | if (idx <= 0) { |
| 102 | return "/"; |
| 103 | } |
| 104 | return path.slice(0, idx); |
| 105 | } |
| 106 | |
| 107 | function getBaseName(path: string): string { |
| 108 | if (path === "/") { |
no outgoing calls
no test coverage detected