Home > @rushstack/node-core-library > AlreadyExistsBehavior

AlreadyExistsBehavior enum

Specifies the behavior of FileSystem.copyFiles() in a situation where the target object already exists.

Signature:

export declare const enum AlreadyExistsBehavior 

Enumeration Members

Member Value Description
Error "error" If the destination object exists, report an error.
Ignore "ignore" If the destination object exists, skip it and continue the operation.
Overwrite "overwrite" If the destination object exists, overwrite it. This is the default behavior for FileSystem.copyFiles().