(fullPath: string)
| 47 | * "/state.json" -> "" (root directory) |
| 48 | */ |
| 49 | export const getDirPath = (fullPath: string): string => { |
| 50 | const parent = getParentPath(fullPath); |
| 51 | // Strip leading slash, root "/" becomes "" |
| 52 | return parent === '/' ? '' : parent.replace(/^\//, ''); |
| 53 | }; |
no test coverage detected