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

AbstractRecursiveOperationsPut(String, String, FileFilter, Boolean, Boolean) Method

Puts this entire directory and its contents.

Definition

Namespace: EnterpriseDT.Net.Ftp
Assembly: edtFTPnetPRO (in edtFTPnetPRO.dll) Version: 12.7.0.0
C#
public void Put(
	string localDir,
	string remoteDir,
	FileFilter filter,
	bool detectTransferMode,
	bool recurse
)

Parameters

localDir  String
name of local directory
remoteDir  String
name of remote directory
filter  FileFilter
FileFilter to use for determining which files should be included.
detectTransferMode  Boolean
true if transfer mode is to be auto-detected
recurse  Boolean
if true, recurse through subdirectories

Remarks

If recurse is true, it recursively goes through the local directory supplied (which can be relative or absolute. Puts the directory into the current remote directory, into a directory with the supplied remoteDir name. Only files matching the filter are fetched. On Windows clients, case is ignored.

See Also