Ftp.GetCurrentDirectoryAsync Method
Namespace: Rebex.Net
Assembly: Rebex.Ftp.dll (version 7.0.9083)
GetCurrentDirectoryAsync(Object)
Begins asynchronous GetCurrentDirectory operation. Gets the absolute path of the current working directory on the remote server.
Declaration
public Task<string> GetCurrentDirectoryAsync(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> | A string containing the absolute path of the current working remote directory. |
Implements
Remarks
Represents FTP PWD command.
Some servers (e.g. TOPS-20) do not support this method. FtpException with status of FtpExceptionStatus.ProtocolError and code of 550 is thrown if this is the case.