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.relative
path.js
When calling path.relative, if the to parameter refers to a UNC (network) path, the result is incorrect.
to
Run the following program:
var path = require('path'); console.log(path.relative('c:\\some\\directory', '\\\\localhost\\c$\\another\\directory'));
The console output should be \\localhost\c$\another\directory because no relative path exists between the two paths.
\\localhost\c$\another\directory
The console output is localhost\c$\another\directory: the leading double backslash is omitted.
localhost\c$\another\directory
The output is correct for two UNC paths to the same host. The output is incorrect for two UNC paths to different hosts.
The text was updated successfully, but these errors were encountered:
cc/ @nodejs/platform-windows
Sorry, something went wrong.
This was fixed in v6.8.0 (duplicate of #8444, fixed in PR #8523).
I'll close the issue, but we can reopen if there's something else to discuss.
No branches or pull requests
path.js
When calling
path.relative
, if theto
parameter refers to a UNC (network) path, the result is incorrect.Steps to Reproduce
Run the following program:
Expected Result
The console output should be
\\localhost\c$\another\directory
because no relative path exists between the two paths.Actual Result
The console output is
localhost\c$\another\directory
: the leading double backslash is omitted.Extra Notes
The output is correct for two UNC paths to the same host. The output is incorrect for two UNC paths to different hosts.
The text was updated successfully, but these errors were encountered: