(path: string)
| 11 | * path (no trailing slash). A file at the vault root yields an empty string. |
| 12 | */ |
| 13 | export function parentFolderPath(path: string): string { |
| 14 | const normalized = normalizePath(path); |
| 15 | const slashIndex = normalized.lastIndexOf('/'); |
| 16 | return slashIndex === -1 ? '' : normalized.slice(0, slashIndex); |
| 17 | } |
no test coverage detected