FileTransferClient.GetInfoAsync Method
Namespace: Rebex.Net
Assembly: Rebex.FileTransfer.dll (version 7.0.9119)
GetInfoAsync(String, Boolean, Object)
Retrieves a FileSystemItem containing the information about the specified remote file or directory.
Declaration
public Task<FileSystemItem> 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<FileSystemItem> | Information about the remote file or directory. |
Implements
Remarks
Returns null if no file is found and failIfNotFound argument is set to false.