CopyOptionsBase - Node documentation
interface CopyOptionsBase

Usage in Deno

import { type CopyOptionsBase } from "node:fs";

Properties

optional
dereference: boolean

Dereference symlinks

optional
errorOnExist: boolean

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

optional
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.

optional
mode: number

Modifiers for copy operation. See mode flag of copyFileSync()

optional
preserveTimestamps: boolean

When true timestamps from src will be preserved.

optional
recursive: boolean

Copy directories recursively.