cpSync
cpSync(
this,source,destination,opts?):void
Defined in: src/node/sync.ts:744
Synchronous cp. Recursively copies a file or directory.
Parameters
Section titled “Parameters”unknown
source
Section titled “source”PathLike
The source file or directory.
destination
Section titled “destination”PathLike
The destination file or directory.
CopySyncOptions
Options for the copy operation. Currently supports these options from Node.js ‘fs.cpSync’:
dereference: Dereference symbolic links. (unconfirmed)errorOnExist: Throw an error if the destination file or directory already exists.filter: A function that takes a source and destination path and returns a boolean, indicating whether to copysourceelement.force: Overwrite the destination if it exists, and overwrite existing readonly destination files. (unconfirmed)preserveTimestamps: Preserve file timestamps.recursive: Iftrue, copies directories recursively.
Returns
Section titled “Returns”void