Sftp.GetInfoAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9083)
GetInfoAsync(String, Boolean, Object)
Begins asynchronous GetInfo operation. Retrieves a SftpItem containing the information about the specified remote file or directory.
Declaration
public Task<SftpItem> GetInfoAsync(string remotePath, bool failIfNotFound, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | The path of the remote file or directory. |
Boolean | failIfNotFound | Specifies whether to throw an exception if file not found. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<SftpItem> | Information about the remote file or directory. |
Remarks
Returns null if no file is found and failIfNotFound argument is set to false.