Ftp.GetItemsAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
GetItemsAsync(String, TraversalMode, Object)
Begins asynchronous GetItems operation. Returns parsed list of files and directories.
Declaration
public Task<FtpItemCollection> 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<FtpItemCollection> | An instance of FtpItemCollection containing the file list. |
GetItemsAsync(FileSet, Object)
Begins asynchronous GetItems operation.
Returns parsed list of files and directories specified by the set
.
Declaration
public Task<FtpItemCollection> 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<FtpItemCollection> | An instance of FtpItemCollection containing the file list. |