account for root level paths

This commit is contained in:
Luke Hagar
2024-07-18 02:40:13 -05:00
parent 26573c47c8
commit 9b7f50f9a9

View File

@@ -130,6 +130,9 @@ export function printExecutionTime(commandName: string, startedAt: number, api:
}
export function pathToFilename(path: string, pathSeparator: string) {
if (path === '/') {
return 'root';
}
return path
.replace(/~1/g, '/')
.replace(/~0/g, '~')