Skip to content

Commit

Permalink
account for root level paths
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeHagar authored Jul 18, 2024
1 parent 9290f1d commit 2002b9c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/cli/src/utils/miscellaneous.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,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, '~')
Expand Down

0 comments on commit 2002b9c

Please sign in to comment.