Returns the file size in bytes.

Namespace: Jscape.Sftp
Assembly: Jscape.Ssh (in Jscape.Ssh.dll) Version: 2.7.2.0

Syntax

C#
public long GetFileSize(
	string pathname
)
Visual Basic
Public Function GetFileSize ( _
	pathname As String _
) As Long
Visual C++
public:
long long GetFileSize(
	String^ pathname
)

Parameters

pathname
Type: System..::..String
the target pathname

Return Value

the file size

Exceptions

ExceptionCondition
Jscape.Sftp..::..SftpExceptionif protocol error occurs

See Also