(path: string)
| 51 | } |
| 52 | |
| 53 | function dirname(path: string): string { |
| 54 | const normalized = normalizePath(path) |
| 55 | const index = normalized.lastIndexOf('/') |
| 56 | return index === -1 ? '' : normalized.slice(0, index) |
| 57 | } |
| 58 | |
| 59 | function basename(path: string): string { |
| 60 | const normalized = normalizePath(path) |
no test coverage detected