(path: string)
| 1595 | } |
| 1596 | |
| 1597 | function getBasename(path: string): string { |
| 1598 | const normalized = normalizePath(path); |
| 1599 | if (normalized === "/") return ""; |
| 1600 | return normalized.slice(normalized.lastIndexOf("/") + 1); |
| 1601 | } |
| 1602 | |
| 1603 | function toFileInfo(r: { |
| 1604 | path: string; |
no test coverage detected