Sftp.GetInfoAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9147)
GetInfoAsync(String, Boolean, Object)
Begins asynchronous GetInfo operation.
Retrieves a Sftp
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
Remarks
Returns null if no file is found and failIfNotFound argument is set to false.