Ftp.ChangeDirectoryAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
ChangeDirectoryAsync(String, Object)
Begins asynchronous ChangeDirectory operation. Changes the current working directory on the server.
Declaration
public Task ChangeDirectoryAsync(string remotePath, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | remotePath | Pathname of the directory to change to. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task |
Implements
Remarks
Implemented using FTP CWD command for pathnames not equal to ".." and CDUP command for ".." pathnames. "." pathnames are ignored.
Caution: some uncommon servers do not use a slash as a directory separator. Do not use slashes in the path to remain compatible with such servers.