edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Get the size of a remote file.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public virtual long GetSize(
	string remoteFile
)
Visual Basic
Public Overridable Function GetSize ( _
	remoteFile As String _
) As Long
Visual C++
public:
virtual long long GetSize(
	String^ remoteFile
)

Parameters

remoteFile
Type: System..::..String
Name or path of remote file in current working directory.

Return Value

Size of file in bytes.

Remarks

This is not a standard FTP command, it is defined in "Extensions to FTP", a draft RFC (draft-ietf-ftpext-mlst-16.txt).

See Also