(path: string)
| 22 | type ColmapDirectory = Partial<Record<ColmapRole, string>>; |
| 23 | |
| 24 | export function getParentDir(path: string): string { |
| 25 | const normalized = path.replace(/\\/g, '/'); |
| 26 | const lastSlash = normalized.lastIndexOf('/'); |
| 27 | return lastSlash >= 0 ? normalized.substring(0, lastSlash) : ''; |
| 28 | } |
| 29 | |
| 30 | export function getBasename(path: string): string { |
| 31 | const normalized = path.replace(/\\/g, '/'); |
no outgoing calls
no test coverage detected