We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
path.toNamespacedPath
1.0.23
Window 10
import path from "node:path"; const fp1 = "C:\\Downloads\\bun-windows-x64\\bun.exe"; const fp2 = "bun.exe"; const fp3 = "\\\\KEENETIC\\USB"; const fp4 = "\\\\KEENETIC\\USB\\A"; console.log(path.toNamespacedPath(fp1)); console.log(path.toNamespacedPath(fp2)); console.log(path.toNamespacedPath(fp2) === "\\\\?\\" + path.resolve(fp2)); console.log(path.toNamespacedPath(fp3)); console.log(path.toNamespacedPath(fp4));
\\?\C:\Downloads\bun-windows-x64\bun.exe \\?\C:\Downloads\bun-windows-x64\bun.exe true \\?\UNC\KEENETIC\USB\ \\?\UNC\KEENETIC\USB\A
C:\Downloads\bun-windows-x64\bun.exe bun.exe false \\KEENETIC\USB \\KEENETIC\USB\A
Rel:
"."
" "
\\.\
\\.\UNC\
The text was updated successfully, but these errors were encountered:
Context: https://nodejs.org/api/path.html#pathtonamespacedpathpath
bun/src/bun.js/bindings/Path.cpp
Lines 125 to 127 in c21dc25
See zig's wToPrefixedFileW
Sorry, something went wrong.
Fixed in #8469
jdalton
No branches or pull requests
What version of Bun is running?
1.0.23
What platform is your computer?
Window 10
What steps can reproduce the bug?
What is the expected behavior?
What do you see instead?
Additional information
Rel:
"."
and space" "
in a filename #8836\\.\
,\\.\UNC\
) #8248The text was updated successfully, but these errors were encountered: