KC's Workspace
    Preparing search index...
    interface ICpOptions {
        dereference?: boolean;
        errorOnExist?: boolean;
        filter?: (src: string, dest: string) => boolean;
        force?: boolean;
        mode?: number;
        preserveTimestamps?: boolean;
        recursive?: boolean;
        verbatimSymlinks?: boolean;
    }
    Index

    Properties

    dereference?: boolean

    dereference symlinks. Default: false.

    errorOnExist?: boolean

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

    filter?: (src: string, dest: string) => boolean

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

    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.

    mode?: number

    Integer, modifiers for copy operation. Default: 0. See mode flag of fs.copyFileSync().

    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.