Skip to content

Conversation

@junnyontop-pixel
Copy link
Contributor

This PR documents that fs.copyFile() always dereferences symbolic links, as requested in #61518.

When src is a symbolic link, the contents of the target file are copied instead of the link itself.

Fixes: #61518

@nodejs-github-bot nodejs-github-bot added the doc Issues and PRs related to the documentations. label Feb 4, 2026
@junnyontop-pixel
Copy link
Contributor Author

Sorry, I accidentally included a README change from my main branch. I will fix this PR to only include fs.md changes.

@Renegade334
Copy link
Member

Please can you squash your commits, so that doc: clarify fs.copyFile() symlink behavior is the commit message that appears in the final changelog.

@junnyontop-pixel
Copy link
Contributor Author

I've squashed the commits into one and fixed the trailing whitespace issue. The commit message has also been updated as you requested. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

doc Issues and PRs related to the documentations.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document that fs.copyFile() dereferences symlinks

3 participants