edtFTPnet/PRO - Secure FTP component for .NET | Free Trial | Pricing

ExFTPConnectionUploadDirectory Method

Uploads the local directory (and its subdirectories) to the remote directory.

Definition

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public virtual void UploadDirectory(
	string localDirectory,
	string remoteDirectory
)

Parameters

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

Remarks

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

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

See Also