You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fs.symlink "type=junction" Create file soft link error #40184
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.
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.
Activity
bzoz commentedon Oct 19, 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.
doc: ntfs junction points must link to directories
doc: ntfs junction points must link to directories
doc: ntfs junction points must link to directories
doc: ntfs junction points must link to directories
doc: ntfs junction points must link to directories