Specifies the condition for overwriting a file.
Assembly: Rebex.Common (in Rebex.Common.dll)
Public Enumeration OverwriteCondition
public enum OverwriteCondition
No condition = always overwrite.
Overwrite if size differs.
Overwrite if the target file is older than the source file. If working with remote servers, this condition is strongly discouraged because modification dates are often misreported by FTP servers, making this mode highly unreliable.
Overwrite if checksum differs. Available for ZIP and FTP; only some FTP servers support checksums.
You can check availability of this condition using IsOverwriteConditionPossible(OverwriteCondition) method.