Sftp.GetNameListAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Sftp.dll (version 7.0.9048)
GetNameListAsync(Object)
Begins asynchronous GetNameList operation. Retrieves the list of file and directory names in the current remote directory.
Declaration
public Task<string[]> GetNameListAsync(object state = null)
Parameters
Type | Name | Description |
---|---|---|
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<String[]> | An array of lines, with each line representing a single name. |
Implements
GetNameListAsync(String, Object)
Begins asynchronous GetNameList operation. Retrieves the list of file and directory names in the specified remote directory, or a list of names matching the specified mask.
Declaration
public Task<string[]> GetNameListAsync(string path, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path of the remote directory, or null for current directory. File wildcards masks (such as *.txt) are accepted as well. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<String[]> | An array of lines, with each line representing a single name. |
Implements
Remarks
Argument is taken case sensitive if ServerType equals to Unix; case insensitive otherwise.