edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing
Downloads the remote directory (and its subdirectories) to the local directory.

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 9.4.0.40

Syntax

C#
public virtual void DownloadDirectory(
	string localDirectory,
	string remoteDirectory
)
Visual Basic
Public Overridable Sub DownloadDirectory ( _
	localDirectory As String, _
	remoteDirectory As String _
)
Visual C++
public:
virtual void DownloadDirectory(
	String^ localDirectory, 
	String^ remoteDirectory
)

Parameters

localDirectory
Type: System..::..String
Local directory
remoteDirectory
Type: System..::..String
Remote directory (will be created if it doesn't already exist)

Remarks

The local directory will be created if it doesn't already exist.

DownloadMultiple(String, String, FileFilter, Boolean) should be used if more control over which files are transferred is required.

See Also