CopyOptions

sealed external interface CopyOptions : CopyOptionsBase(source)

Properties

Link copied to clipboard
abstract var dereference: Boolean?

Dereference symlinks

Link copied to clipboard
abstract var errorOnExist: Boolean?

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

Link copied to clipboard
abstract val 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 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 var mode: Double?

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

Link copied to clipboard

When true timestamps from src will be preserved.

Link copied to clipboard
abstract var recursive: Boolean?

Copy directories recursively.

Link copied to clipboard
abstract var verbatimSymlinks: Boolean?

When true, path resolution for symlinks will be skipped