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

AbstractRecursiveOperationsDeleteFiles(String, FileFilter, Boolean) Method

Delete all the files in this directory (and its subdirectories if recurse is true) that match the supplied filter.

Definition

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

Parameters

remoteDir  String
name of remote directory
filter  FileFilter
FileFilter to use for determining which files should be included.
recurse  Boolean
true if recursing through subdirectories

Remarks

No directories are deleted. Only files matching the filter are deleted. On Windows clients, case is ignored.

See Also