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.26109.1248
Syntax
public long GetFileSize(
	string remotePath
)

Parameters

remotePath  String
The path of the remote file.

Return Value

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