Rebex FTP/SSL for .NET

Ftp.BeginChangeDirectory Method 

Changes the current working directory on the server.

public IAsyncResult BeginChangeDirectory(
   string remotePath,
   AsyncCallback callback,
   object state
);

Parameters

remotePath
Pathname of the directory to change to.
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

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.

See Also

Ftp Class | Rebex.Net Namespace