Variable FILE_WRITE_ENUMConst

FILE_WRITE_ENUM: {
    KEY_EXISTS: "KEY_EXISTS";
    NOT_FOUND: "NOT_FOUND";
    SUCCESS: "SUCCESS";
} = ...

Enumeration defining the possible outcomes of write operations. Used by copy and move operations that respect existing key constraints.

IMPORT_PATH: "@daiso-tech/core/file-storage/contracts"

Type declaration

  • ReadonlyKEY_EXISTS: "KEY_EXISTS"

    Destination file already exists. Operation did not proceed because destination key exists and operation does not allow overwrite. Use copyAndReplace or moveAndReplace to overwrite existing files.

  • ReadonlyNOT_FOUND: "NOT_FOUND"

    Source file was not found. Operation failed because source key does not exist. Destination unchanged.

  • ReadonlySUCCESS: "SUCCESS"

    Operation completed successfully. File was copied/moved and destination now contains the source content.