SocketTools .NET Edition

FtpClient.FtpVerifyOptions Enumeration

Specifies the file verification options that are supported.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

[Visual Basic]
<Flags>
Public Enum FtpClient.FtpVerifyOptions
[C#]
[Flags]
public enum FtpClient.FtpVerifyOptions

Members

Member Name Description Value
verifyDefault File verification should use the best option available based on the available server features. If the server supports the XMD5 command, the class will calculate an MD5 has of the local file contents and compare the value with the file on the server. If the server does not support the XMD5 command, but it does support the XCRC command, the class will calculate a CRC32 checksum of the local file contents and compare the value with the file on the server. If the server does not support either the XMD5 or XCRC commands, the class will compare the size of the local and remote files. 0
verifySize Files are verified by comparing the number of bytes of data in the local and remote files. This is the least reliable method, and should only be used if the server does not support either the XMD5 or XCRC commands. 1
verifyCrc32 Files are verified by calculating a CRC32 checksum of the local file contents and comparing it with the value returned by the server in response to the XCRC command. This method should only be used if the server does not support the XMD5 command. 2
verifyMd5 Files are verified by calculating an MD5 hash of the local file contents and comparing it with the value returned by the server in response to the XMD5 command. This is the preferred method for performing file verification. 4

Requirements

Namespace: SocketTools

Assembly: SocketTools.FtpClient (in SocketTools.FtpClient.dll)

See Also

SocketTools Namespace