Returns the size of the specified remote file.

Namespace:  Rebex.Net
Assembly:  Rebex.Ftp (in Rebex.Ftp.dll)

Syntax

Visual Basic
Public Function GetFileLength ( _
	remotePath As String _
) As Long
C#
public long GetFileLength(
	string remotePath
)

Parameters

remotePath
Type: System..::..String
The path of the remote file. This cannot be a directory.

Return Value

The size of the specified file in bytes.

Implements

IFtp..::..GetFileLength(String)

Remarks

Represents FTP SIZE command.

The SIZE command was not defined by the original RFC, but it has been widely supported for a number of years.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also