CopyOptions

external interface CopyOptions : CopyOptionsBase(source)

Properties

Link copied to clipboard
abstract external var dereference: Boolean?

Dereference symlinks

Link copied to clipboard
abstract external var errorOnExist: Boolean?

When force is false, and the destination exists, throw an error.

Link copied to clipboard
abstract external var filter: (source: String, destination: String) -> PromiseResult<Boolean>?

Function to filter copied files/directories. Return true to copy the item, false to ignore it.

Link copied to clipboard
abstract external var force: Boolean?

Overwrite existing file or directory. _The copy operation will ignore errors if you set this to false and the destination exists. Use the errorOnExist option to change this behavior.

Link copied to clipboard
abstract external var mode: Double?

Modifiers for copy operation. See mode flag of {@link copyFileSync()}

Link copied to clipboard
abstract external var preserveTimestamps: Boolean?

When true timestamps from src will be preserved.

Link copied to clipboard
abstract external var recursive: Boolean?

Copy directories recursively.

Link copied to clipboard
abstract external var verbatimSymlinks: Boolean?

When true, path resolution for symlinks will be skipped