Specifies the default action to perform when a target file already exists.
However, the default action can still be changed using the Sftp.BatchTransferProblemDetected event.
Namespace:
Rebex.Net
Assembly:
Rebex.Sftp (in Rebex.Sftp.dll)
Syntax
Visual Basic |
---|
Public Enumeration SftpActionOnExistingFiles |
C# |
---|
public enum SftpActionOnExistingFiles |
Members
Member name | Description | |
---|---|---|
ThrowException |
Existing files are to cause the whole multi-file transfer to be canceled and an exception to be raised.
| |
SkipAll |
Existing files are to be always skipped.
| |
OverwriteAll |
Existing files are to be always overwritten.
| |
OverwriteOlder |
Existing files are to be overwritten if they are older than source files.
This is strongly discouraged because modification dates are often misreported by SFTP servers, making this mode highly unreliable.
We strongly recommend to use a different mode or develop a custom solution using the Sftp.BatchTransferProblemDetected event.
| |
OverwriteDifferentSize |
Existing files with different sizes are to be overwritten.
| |
ResumeIfPossible |
Existing files are to be resumed if they are smaller than source files.
|