Table of Contents

Enum FtpVerify

Namespace
FluentFTP
Assembly
FluentFTP.dll

Defines if additional verification and actions upon failure that should be performed when uploading/downloading files using the high-level APIs. Ignored if the FTP server does not support any hashing algorithms.

[Flags]
public enum FtpVerify
Extension Methods

Fields

Delete = 2

The checksum of the file is verified, if supported by the server. If the checksum comparison fails then the failed file will be deleted. If combined with Retry, then the deletion will occur if it fails upon the final retry.

None = 0

No verification of the file is performed

[Obsolete("OnlyChecksum is now renamed to OnlyVerify to better reflect its behaviour.", true)] OnlyChecksum = 8

OnlyChecksum is now renamed to OnlyVerify.

OnlyVerify = 16

The file is only verified. If no verification type is specified, checksum is used. If the comparison fails, the method returns false and no further action is taken.

Retry = 1

The checksum of the file is verified, if supported by the server. If the checksum comparison fails then we retry the download/upload a specified amount of times before giving up. (See RetryAttempts)

Throw = 4

The checksum of the file is verified, if supported by the server. If the checksum comparison fails then an exception will be thrown. If combined with Retry, then the throw will occur upon the failure of the final retry, and/or if combined with Delete the method will throw after the deletion is processed.