(path: string | undefined)
| 1 | export function getFilename(path: string | undefined) { |
| 2 | if (!path) return "" |
| 3 | const trimmed = path.replace(/[/\\]+$/, "") |
| 4 | const parts = trimmed.split(/[/\\]/) |
| 5 | return parts[parts.length - 1] ?? "" |
| 6 | } |
| 7 | |
| 8 | export function getDirectory(path: string | undefined) { |
| 9 | if (!path) return "" |
no outgoing calls
no test coverage detected