(uri: string)
| 85 | Returns just the file or folder name of a URI |
| 86 | */ |
| 87 | export function getUriPathBasename(uri: string): string { |
| 88 | const path = getCleanUriPath(uri); |
| 89 | const basename = path.split("/").pop() || ""; |
| 90 | return decodeURIComponent(basename); |
| 91 | } |
| 92 | |
| 93 | export function getFileExtensionFromBasename(basename: string) { |
| 94 | const parts = basename.split("."); |
no test coverage detected