copyFileSync
copyFileSync(
this,source,destination,flags?):void
Defined in: src/node/sync.ts:670
Synchronous copyFile. Copies a file.
Parameters
Section titled “Parameters”unknown
source
Section titled “source”PathLike
destination
Section titled “destination”PathLike
flags?
Section titled “flags?”number
Optional flags for the copy operation. Currently supports these flags:
fs.constants.COPYFILE_EXCL: If the destination file already exists, the operation fails.
Returns
Section titled “Returns”void