Rebex FTP for .NET

Ftp.BeginGetCurrentDirectory Method 

Gets the absolute path of the current working directory on the remote server.

public IAsyncResult BeginGetCurrentDirectory(
   AsyncCallback callback,
   object state
);

Parameters

callback
An optional asynchronous callback to be called when the operation is complete.
state
A user-provided object that identifies this particular asynchronous operation.

Return Value

An IAsyncResult that references the asynchronous operation.

Remarks

Represents FTP PWD command.

Some servers (eg. TOPS-20) do not support this method. FtpException with status of FtpExceptionStatus.ProtocolError and code of 550 is thrown if this is the case.

See Also

Ftp Class | Rebex.Net Namespace