mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
doc: clarify copyFile symlink behavior
Signed-off-by: T <cookesan@users.noreply.github.com> PR-URL: https://github.com/nodejs/node/pull/62941 Fixes: https://github.com/nodejs/node/issues/61518 Reviewed-By: Aviv Keller <me@aviv.sh>
This commit is contained in:
1 parent
abfc51f757
commit
63583c4e75
1 file changed
+12
@@ -1327,6 +1327,10 @@ changes:
|
||||
Asynchronously copies `src` to `dest`. By default, `dest` is overwritten if it
|
||||
already exists.
|
||||
|
||||
Symbolic links are followed. If `src` is a symbolic link, the target file is
|
||||
copied. If `dest` is a symbolic link, the target file is overwritten unless
|
||||
`mode` contains `fs.constants.COPYFILE_EXCL`.
|
||||
|
||||
No guarantees are made about the atomicity of the copy operation. If an
|
||||
error occurs after the destination file has been opened for writing, an attempt
|
||||
will be made to remove the destination.
|
||||
@@ -2841,6 +2845,10 @@ callback function. Node.js makes no guarantees about the atomicity of the copy
|
||||
operation. If an error occurs after the destination file has been opened for
|
||||
writing, Node.js will attempt to remove the destination.
|
||||
|
||||
Symbolic links are followed. If `src` is a symbolic link, the target file is
|
||||
copied. If `dest` is a symbolic link, the target file is overwritten unless
|
||||
`mode` contains `fs.constants.COPYFILE_EXCL`.
|
||||
|
||||
`mode` is an optional integer that specifies the behavior
|
||||
of the copy operation. It is possible to create a mask consisting of the bitwise
|
||||
OR of two or more values (e.g.
|
||||
@@ -6004,6 +6012,10 @@ already exists. Returns `undefined`. Node.js makes no guarantees about the
|
||||
atomicity of the copy operation. If an error occurs after the destination file
|
||||
has been opened for writing, Node.js will attempt to remove the destination.
|
||||
|
||||
Symbolic links are followed. If `src` is a symbolic link, the target file is
|
||||
copied. If `dest` is a symbolic link, the target file is overwritten unless
|
||||
`mode` contains `fs.constants.COPYFILE_EXCL`.
|
||||
|
||||
`mode` is an optional integer that specifies the behavior
|
||||
of the copy operation. It is possible to create a mask consisting of the bitwise
|
||||
OR of two or more values (e.g.
|
||||
|
||||
Reference in new issue
Block a user