Sftp.GetItemsAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9083)
GetItemsAsync(String, TraversalMode, Object)
Begins asynchronous GetItems operation. Retrieves the list of files and directories.
Declaration
public Task<SftpItemCollection> GetItemsAsync(string remotePath, TraversalMode traversalMode, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | The path (with or without a mask) to a remote file or directory. |
TraversalMode | traversalMode | Specifies how to traverse hierarchy of directories. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<SftpItemCollection> | Collection of SftpItem values. |
GetItemsAsync(FileSet, Object)
Begins asynchronous GetItems operation.
Retrieves the list of files and directories specified by the set
.
Declaration
public Task<SftpItemCollection> GetItemsAsync(FileSet set, object state = null)
Parameters
Type | Name | Description |
---|---|---|
FileSet | set | A filtering set which specifies remote files and directories to be retrieved. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<SftpItemCollection> | Collection of SftpItem values. |