-
-
Notifications
You must be signed in to change notification settings - Fork 37.1k
fs.symlink "type=junction" Create file soft link error #40184
Copy link
Copy link
Closed
Labels
docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
Description
Activity
Metadata
Metadata
Assignees
Labels
docIssues and PRs related to Node.js documentation.Issues and PRs related to Node.js documentation.fsIssues and PRs related to file-system APIs and the fs module.Issues and PRs related to file-system APIs and the fs module.windowsIssues and PRs related to the Windows platform.Issues and PRs related to the Windows platform.
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