We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1818bb7 commit fc3c5abCopy full SHA for fc3c5ab
doc/api/fs.md
@@ -2467,6 +2467,9 @@ callback function. Node.js makes no guarantees about the atomicity of the copy
2467
operation. If an error occurs after the destination file has been opened for
2468
writing, Node.js will attempt to remove the destination.
2469
2470
+Note: `fs.copyFile()` always dereferences symbolic links.
2471
+If `src` is a symbolic link, the contents of the target file will be copied rather than the link itself.
2472
+
2473
`mode` is an optional integer that specifies the behavior
2474
of the copy operation. It is possible to create a mask consisting of the bitwise
2475
OR of two or more values (e.g.
0 commit comments