(create = false)
| 31 | |
| 32 | /** Get the workspace root directory handle */ |
| 33 | export async function getWorkspaceRoot(create = false): Promise<FileSystemDirectoryHandle> { |
| 34 | const opfsRoot = await navigator.storage.getDirectory(); |
| 35 | return getDirectory(opfsRoot, WORKSPACE_ROOT, create); |
| 36 | } |
| 37 | |
| 38 | /** Split a sanitized path into parent directory path and filename */ |
| 39 | export function splitPath(sanitized: string): { dirPath: string; fileName: string } { |
no test coverage detected