Returns the file size in bytes.
Namespace: Jscape.SftpAssembly: 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
Exception | Condition |
---|---|
Jscape.Sftp..::..SftpException | if protocol error occurs |