(path: string)
| 15 | * Get parent path |
| 16 | */ |
| 17 | export const getParentPath = (path: string): string => { |
| 18 | const parts = path.split('/'); |
| 19 | parts.pop(); |
| 20 | return parts.join('/') || '/'; |
| 21 | }; |
| 22 | |
| 23 | /** |
| 24 | * Normalize path |
no outgoing calls
no test coverage detected