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
Supported by the .NET Compact FrameworkThrowException
Existing files are to cause the whole multi-file transfer to be canceled and an exception to be raised.
Supported by the .NET Compact FrameworkSkipAll
Existing files are to be always skipped.
Supported by the .NET Compact FrameworkOverwriteAll
Existing files are to be always overwritten.
Supported by the .NET Compact FrameworkOverwriteOlder
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.
Supported by the .NET Compact FrameworkOverwriteDifferentSize
Existing files with different sizes are to be overwritten.
Supported by the .NET Compact FrameworkResumeIfPossible
Existing files are to be resumed if they are smaller than source files.
Supported by the .NET Compact FrameworkRename
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.
Supported by the .NET Compact FrameworkOverwriteDifferentChecksum
Existing files with different checksum are to be overwritten.
Supported by SFTP/FTP (when supported by the server) and ZIP (CRC-32 only).

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also