Click or drag to resize

FtpGetFileSize Method

Returns the size of the specified remote file. You can check the value of SupportsSize of Extensions property to check if this method is supported by the remote server.

Namespace:  Limilabs.FTP.Client
Assembly:  Ftp (in Ftp.dll) Version: 2.0.22214.1022
Syntax
public long GetFileSize(
	string remotePath
)

Parameters

remotePath
Type: SystemString
The path of the remote file.

Return Value

Type: Int64
Size of the specified file in bytes.
Remarks
On some servers this command works on folders.
See Also