Skip to content

copyFileSync

copyFileSync(this, source, destination, flags?): void

Defined in: src/node/sync.ts:670

Synchronous copyFile. Copies a file.

unknown

PathLike

PathLike

number

Optional flags for the copy operation. Currently supports these flags:

  • fs.constants.COPYFILE_EXCL: If the destination file already exists, the operation fails.

void