Retrieves a SftpItem containing the information about the specified remote file or directory.
Namespace:
Rebex.Net
Assembly:
Rebex.Sftp (in Rebex.Sftp.dll)
Syntax
Visual Basic |
---|
Public Function GetInfo ( _ remotePath As String, _ failIfNotFound As Boolean _ ) As SftpItem |
C# |
---|
public SftpItem GetInfo( string remotePath, bool failIfNotFound ) |
Parameters
- remotePath
- Type: System..::..String
The path of the remote file or directory.
- failIfNotFound
- Type: System..::..Boolean
Specifies whether to throw an exception if file not found.
Return Value
Information about the remote file or directory.Remarks
Returns null if no file is found and failIfNotFound argument is set to false.