Downloads the remote directory and all contents
recursively from the FTP server.
Namespace: Jscape.FtpAssembly: 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#
Copy

myFtp.DownloadDir(".");

myFtp.DownloadDir(".")
Exceptions
Exception | Condition |
---|---|
Jscape.Ftp..::..FtpException | If an I/O or FTP error occurs. |