Downloads the remote directory and all contents recursively from the FTP server.

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

Syntax

C#
public virtual void DownloadDir(
	string remoteDir
)
Visual Basic
Public Overridable Sub DownloadDir ( _
	remoteDir As String _
)
Visual C++
public:
virtual void DownloadDir(
	String^ remoteDir
)

Parameters

remoteDir
Type: System..::..String
The remote directory to download.

Remarks

Downloads are saved relative to the local directory.

Examples

The following example recursively downloads the current remote directory contents to the local directory.
CopyC#
myFtp.DownloadDir(".");

Copy 
myFtp.DownloadDir(".")

Exceptions

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

See Also