Delphi Database, Delphi Components from ComponentAce
Products Download Order Contact us

FlexCompress.DeleteFiles

FlexCompress        Example

Previous  Top  Next

Deletes files stored within the archive.

 

[C#]

public virtual void DeleteFiles();

public void DeleteFiles(string fileMask);

public void DeleteFiles(string fileMask, FileAttributes searchAttr);
 

[VB.NET]

Public Sub DeleteFiles(ByVal fileMask As String)

Public Sub DeleteFiles(ByVal fileMask As String, ByVal searchAttr As FileAttributes)

Public Overridable Sub DeleteFiles(ByVal fileMask As String, ByVal searchAttr As FileAttributes, ByVal exclusionMask As String)

 

Description

 

Use DeleteFiles to delete files from the open archive file. If Options.Recurse is set to True, DeleteFiles will search files recursively.

 

 

DeleteFiles variant without parameters uses FileMasks, ExclusionMasks and Options.SearchAttr to specify search conditions and to exclude files from delete operation.

 

The fileMask parameter is the directory and file name mask, including wildcard characters. For example, "TEST\\*.*" specifies all files in the TEST directory stored within the archive file. All files that meets FileMask and SearchAttr will be deleted.

 

The searchAttr parameter specifies the special files to include in addition to all normal files.

 

The exclusionMask specifies files to be excluded from delete operation.

 

Note:    If some errors occurs an exception will be raised. Write an OnProcessFileFailure event handler to perform your own error handling.

 

        © 2003 - 2024 ComponentAce  | .net zip component | barcode for .net | delphi zip component | delphi database Nov 13, 2024