An NDoc Documented Class Library

FTPFileTransferEventArgs.RemoteFileSize Property

Size of remote file (see remarks)

public long RemoteFileSize {get;}

Remarks

For the Downloading and Uploading events, the value of this property will be the size of the local file, since it is not yet known what size ASCII files will be once uploaded to the server.

Some servers do not support the command required to get the size of a particular file. In this case, or in case of an error, the FileSize property will be -1.

See Also

FTPFileTransferEventArgs Class | EnterpriseDT.Net.Ftp Namespace