Skip to content

Commit d7f81cb

Browse files
doc: clarify fs.copyFile() symlink behavior
1 parent 1818bb7 commit d7f81cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

doc/api/fs.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2441,6 +2441,9 @@ See the POSIX close(2) documentation for more detail.
24412441
24422442
### `fs.copyFile(src, dest[, mode], callback)`
24432443
2444+
Note: `fs.copyFile()` always dereferences symbolic links.
2445+
If `src` is a symbolic link, the contents of the target file will be copied rather than the link itself.
2446+
24442447
<!-- YAML
24452448
added: v8.5.0
24462449
changes:

0 commit comments

Comments
 (0)