setOverwriteMode method

void setOverwriteMode(
  1. AesCryptOwMode mode
)

Sets overwrite mode mode for write file operations during encryption or decryption process.

Available modes:

AesCryptOwMode.warn - If the file exists, stops the operation and throws AesCryptException exception with AesCryptExceptionType.destFileExists type. This mode is set by default.

AesCryptOwMode.rename - If the file exists, adds index '(1)' to its' name and tries to save. If such file also exists, adds '(2)' to its name, then '(3)', etc.

AesCryptOwMode.on - Overwrite the file if it exists.

Implementation

void setOverwriteMode(AesCryptOwMode mode) => _owMode = mode;