source filename to copy
destination filename of the copy operation
Optional mode: numberOptional modifiers that specify 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.
fs.constants.COPYFILE_EXCL | fs.constants.COPYFILE_FICLONE)
Fulfills with undefined upon success.
v10.0.0
Generated using TypeDoc
Asynchronously copies
srctodest. By default,destis overwritten if it already exists.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.