Skip to content

doc: document that fs.copyFile() always dereferences symlinks#63630

Closed
developers-universe-1 wants to merge 2 commits into
nodejs:mainfrom
developers-universe-1:fix/copyfile-symlink-docs
Closed

doc: document that fs.copyFile() always dereferences symlinks#63630
developers-universe-1 wants to merge 2 commits into
nodejs:mainfrom
developers-universe-1:fix/copyfile-symlink-docs

Conversation

@developers-universe-1
Copy link
Copy Markdown

Add a note to fs.copyFile(), fs.copyFileSync(), and fsPromises.copyFile() documenting that they always dereference symlinks, matching the behavior already documented for fs.cp().

Fixes: #61518

When a branch leads to code that is fully ignored via
/* node:coverage ignore next */, the branch should be marked as
covered (count = 1) instead of uncovered (count = 0). This aligns
with the existing logic that already counts fully-ignored branches
as covered for summary statistics (BRF/BRH).

Fixes: nodejs#61586
Add a note to fs.copyFile(), fs.copyFileSync(), and
fsPromises.copyFile() documenting that they always dereference
symlinks, matching the behavior already documented for fs.cp().

Fixes: nodejs#61518
@nodejs-github-bot
Copy link
Copy Markdown
Collaborator

Review requested:

  • @nodejs/test_runner

@nodejs-github-bot nodejs-github-bot added needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem. labels May 28, 2026
@avivkeller
Copy link
Copy Markdown
Member

bd19b1a is unrelated

@developers-universe-1
Copy link
Copy Markdown
Author

Closing in favor of #63631 which has a clean commit history.

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

Labels

needs-ci PRs that need a full CI run. test_runner Issues and PRs related to the test runner subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document that fs.copyFile() dereferences symlinks

3 participants