API reference@evolu/commonFs › FsCopyOptions

Defined in: packages/common/src/Fs.ts:279

Options for Fs.copy.

Properties

errorOnExist?

readonly optional errorOnExist?: boolean;

Defined in: packages/common/src/Fs.ts:291

Node's errorOnExist option. With force: false, existing files and directories fail with AlreadyExists. Defaults to false. Symbolic links retain Node's behavior and may still be replaced.


force?

readonly optional force?: boolean;

Defined in: packages/common/src/Fs.ts:285

Node's force option. Replaces existing files; false skips them unless errorOnExist is enabled. Defaults to true. This does not protect destination symbolic links.


preserveTimestamps?

readonly optional preserveTimestamps?: boolean;

Defined in: packages/common/src/Fs.ts:293

Preserves access and modification times. Defaults to false.