Gets/Sets the remote directory on the FTP server.

Namespace: Jscape.Ftp
Assembly: Jscape.Ftp (in Jscape.Ftp.dll) Version: 2.4.5.0

Syntax

C#
public virtual string RemoteDir { get; set; }
Visual Basic
Public Overridable Property RemoteDir As String
	Get
	Set
Visual C++
public:
virtual property String^ RemoteDir {
	String^ get ();
	void set (String^ value);
}

Examples

This example creates a new sub directory newDir on the FTP server relative to the current remote directory and sets the new directory to the current remote directory.
CopyC#
myFtp.MakeDir("newDir");
myFtp.RemoteDir = "newDir";

Copy 
myFtp.MakeDir("newDir")
myFtp.RemoteDir = "newDir"

Exceptions

ExceptionCondition
Jscape.Ftp..::..FtpExceptionIf an I/O or FTP error occurs.

See Also