Utility TypeScript @ 2.0.0-beta
    Preparing search index...

    Interface CopyFileArgs

    Optional configuration for NodeFiles.copy.

    0.2.0

    interface CopyFileArgs {
        force: boolean;
        recursive: boolean;
        rename: boolean;
        filter?: (src: string, dest: string) => boolean;
        flag?: string;
    }

    Hierarchy (View Summary)

    Index

    Properties

    force: boolean

    Overwrite file at destination if it exists.

    false
    
    recursive: boolean

    Whether to copy directories recursively.

    rename: boolean

    If a file exists at destination, append a number to the file’s basename so it’s unique.

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

    Function to filter copied files/directories.

    Return true to copy the item, false to ignore it.

    When ignoring a directory, all of its contents will be skipped as well.

    flag?: string