(path: string | undefined)
| 6 | } |
| 7 | |
| 8 | export function getDirectory(path: string | undefined) { |
| 9 | if (!path) return "" |
| 10 | const parts = path.split("/") |
| 11 | return parts.slice(0, parts.length - 1).join("/") + "/" |
| 12 | } |
| 13 | |
| 14 | export function getFileExtension(path: string | undefined) { |
| 15 | if (!path) return "" |
no outgoing calls
no test coverage detected