-
Notifications
You must be signed in to change notification settings - Fork 29.6k
New issue
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
fs.symlink "type=junction" Create file soft link error #40184
Comments
Ayase-252
added
fs
Issues and PRs related to the fs subsystem / file system.
windows
Issues and PRs related to the Windows platform.
labels
Sep 23, 2021
NTFS junction points can only point to folders. This is not a bug in Node.js, just a limitation of the OS. I think it should be documented, both in Node and in libuv. |
bnoordhuis
added a commit
to bnoordhuis/io.js
that referenced
this issue
May 7, 2023
MoLow
pushed a commit
to MoLow/node
that referenced
this issue
Jul 6, 2023
Fixes: nodejs#40184 PR-URL: nodejs#47907 Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Debadree Chatterjee <debadree333@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
v14.17.5
Platform
Win32NT 10.0.19043.0 Microsoft Windows NT 10.0.19043.0 x64
Subsystem
FS
What steps will reproduce the bug?
If you use fs.symlink under windows, if you don't use UAC, you will get an "operation not permitted" error.
But adding "type=junction" option can eliminate UAC, but only folders can correctly create soft links. The file will also be recognized as a folder, and the created soft link cannot be used.
How often does it reproduce? Is there a required condition?
always
What is the expected behavior?
No response
What do you see instead?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: