Interface CopyOptions

Options for copy and copySync.

interface CopyOptions {
    overwrite?: boolean;
    preserveTimestamps?: boolean;
}

Properties

overwrite?: boolean

Whether to overwrite existing file or directory.

{false}
preserveTimestamps?: boolean

When true, will set last modification and access times to the ones of the original source files. When false, timestamp behavior is OS-dependent.

[!NOTE] This option is currently unsupported for symbolic links.

{false}