Skip to content

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

Open
developers-universe-1 wants to merge 1 commit into
nodejs:mainfrom
developers-universe-1:fix/copyfile-symlink-docs-v2
Open

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

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

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 nodejs-github-bot added doc Issues and PRs related to the documentations. fs Issues and PRs related to the fs subsystem / file system. labels May 28, 2026
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. fs Issues and PRs related to the fs subsystem / file system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Document that fs.copyFile() dereferences symlinks

2 participants