(filePath: string)
| 6 | } |
| 7 | |
| 8 | export function encodeFilePathForApi(filePath: string): string { |
| 9 | return normalizeFilePathSlashes(filePath) |
| 10 | .split("/") |
| 11 | .filter(Boolean) |
| 12 | .map(encodeURIComponent) |
| 13 | .join("/"); |
| 14 | } |
| 15 | |
| 16 | export function getFileName(filePath: string): string { |
| 17 | const normalized = normalizeFilePathSlashes(filePath).replace(/\/+$/, ""); |
no test coverage detected