Specifies the default action to perform when a target file already exists. However, the default action can still be changed using the ProblemDetected event.

Namespace:  Rebex.IO
Assembly:  Rebex.Common (in Rebex.Common.dll)

Syntax

Visual Basic
Public Enumeration ActionOnExistingFiles
C#
public enum ActionOnExistingFiles

Members

Member nameDescription
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 FTP and SFTP servers, making this mode highly unreliable. We strongly recommend to use a different mode or develop a custom solution using the ProblemDetected 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.
Rename
Existing files are to be renamed according the pattern "filename[number].extension". You can still change the generated name using the ProblemDetected event and the Rename(String) method.
OverwriteDifferentChecksum
Existing files with different checksum are to be overwritten.
Works on FTP and ZIP only. ZIP uses CRC-32 always; FTP uses checksums provided by the server (some FTP servers support no checksums).

Version Information

.NET Framework

Supported in: 4.8, 4.7.x, 4.6.x, 4.5.x, 4.0, 3.5 SP1

.NET Standard 2.0

Supported in: .NET Core 3.1, 3.0, 2.1; Xamarin.Android 9.1 (or higher); Xamarin.iOS 10.3 (or higher)

See Also