Hierarchy

Properties

dereference?: boolean

Dereference symlinks

Default

false

errorOnExist?: boolean

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

Default

false

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.

Default

true

preserveTimestamps?: boolean

When true timestamps from src will be preserved.

Default

false

recursive?: boolean

Copy directories recursively.

Default

false

verbatimSymlinks?: boolean

When true, path resolution for symlinks will be skipped

Default

false

Methods

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

    Parameters

    • source: string
    • destination: string

    Returns boolean