(path: string)
| 1588 | } |
| 1589 | |
| 1590 | function getParent(path: string): string { |
| 1591 | const normalized = normalizePath(path); |
| 1592 | if (normalized === "/") return ""; |
| 1593 | const lastSlash = normalized.lastIndexOf("/"); |
| 1594 | return lastSlash === 0 ? "/" : normalized.slice(0, lastSlash); |
| 1595 | } |
| 1596 | |
| 1597 | function getBasename(path: string): string { |
| 1598 | const normalized = normalizePath(path); |
no test coverage detected