Core CI / core (ubuntu-latest) (push) Failing after 3m29s
Core CI / core (macos-latest) (push) Canceled after 0s
Core CI / core (windows-latest) (push) Canceled after 0s
Core CI / desktop (ubuntu-latest) (push) Successful in 7m23s
Core CI / desktop (macos-latest) (push) Canceled after 0s
Core CI / desktop (windows-latest) (push) Canceled after 0s
7 lines
278 B
TypeScript
7 lines
278 B
TypeScript
/** Explorer-style labels; callers retain the original path for file operations. */
|
|
export function displayPath(path: string) {
|
|
if (path.startsWith("\\\\?\\UNC\\")) return "\\\\" + path.slice(8);
|
|
if (/^\\\\\?\\[A-Za-z]:\\/.test(path)) return path.slice(4);
|
|
return path;
|
|
}
|