An NDoc Documented Class Library

ExFTPConnection.UploadMultiple Method (String, String, FileFilter, Boolean)

Put multiple files from the specified local directory into the specified remote directory.

public virtual void UploadMultiple(
   string localDirectory,
   string remoteDirectory,
   FileFilter filter,
   bool includeSubDirs
);

Parameters

localDirectory
local directory name
remoteDirectory
remote directory name
filter
FileFilter to use for determining which files should be included.
includeSubDirs
if true, subdirectories are put

Remarks

Optionally, all subdirectories can be transferred as well. Note that the wildcard is only applicable to files, not to subdirectories.

Wildcard expression use '?' to match any single character and '*' to match multiple characters. For example, "file*.txt" will match any file-name starting with "file" and having an extension ".txt".

Note that if the LocalDirectory property is set and localDirectory is a relative path, it will be combined with the LocalDirectory to find the target directory.

See Also

ExFTPConnection Class | EnterpriseDT.Net.Ftp Namespace | ExFTPConnection.UploadMultiple Overload List