Specifies the condition for overwriting a file.
Namespace:
Rebex.IO
Assembly:
Rebex.Common (in Rebex.Common.dll)
Syntax
Visual Basic |
---|
Public Enumeration OverwriteCondition |
C# |
---|
public enum OverwriteCondition |
Members
Member name | Description | |
---|---|---|
None |
No condition = always overwrite.
| |
SizeDiffers |
Overwrite if size differs.
| |
Older |
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.
| |
ChecksumDiffers |
Overwrite if checksum differs.
Available for ZIP, FTP and SFTP. However, only some FTP and SFTP servers support checksums. You can check availability of this condition using IsOverwriteConditionPossible(OverwriteCondition) method. |