Changes the current working directory on the server.

Namespace:  Rebex.Net
Assembly:  Rebex.Ftp (in Rebex.Ftp.dll)

Syntax

Visual Basic
Public Sub ChangeDirectory ( _
	remotePath As String _
)
C#
public void ChangeDirectory(
	string remotePath
)

Parameters

remotePath
Type: System..::..String
Pathname of the directory to change to.

Implements

IFtp..::..ChangeDirectory(String)

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.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also