Returns the size of a remote file in bytes, or -1 if the file does not exist

Namespace:  KetLabs.FTP
Assembly:  Ftp (in Ftp.dll) Version: 1.0.0.19105 (1.0.0.*)

Syntax

C#
public long FileSize(
	string filename
)
Visual Basic (Declaration)
Public Function FileSize ( _
	filename As String _
) As Long
Visual C++
public:
long long FileSize(
	String^ filename
)

Parameters

filename
Type: System..::.String
Remote file name

Return Value

Remote file size in bytes. If remote file does not exist, returns -1

See Also