copyFileSync

abstract fun copyFileSync(src: Path, dest: Path, mode: Int = 0)

Method: fs.copyFileSync

Copies the contents at the provided src path to the provided dest path, using the given mode (if specified) as modifiers for the copy operation; default value for mode is 0.

Parameters

src

The source path to copy from.

dest

The destination path to copy to.

mode

The mode to use for the copy operation.


abstract fun copyFileSync(src: Value, dest: Value, mode: Value?)

Method: fs.copyFileSync

Copies the contents at the provided src path to the provided dest path, using the given mode (if specified) as modifiers for the copy operation; default value for mode is 0.

This method operates synchronously.

Parameters

src

The source path to copy from.

dest

The destination path to copy to.

mode

The mode to use for the copy operation.


abstract fun copyFileSync(src: Value, dest: Value)

Method: fs.copyFileSync

Copies the contents at the provided src path to the provided dest path.

This method operates synchronously.

Parameters

src

The source path to copy from.

dest

The destination path to copy to.