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

FlexCompress.UpdateFiles

FlexCompress        Example

Previous  Top  Next

Updates files stored within the archive.

 

[C#]

public virtual void UpdateFiles();

public void UpdateFiles(string fileMask);

public void UpdateFiles(string fileMask, FileAttributes searchAttr);

public virtual void UpdateFiles(string fileMask, FileAttributes searchAttr, string exclusionMask);

 

[VB.NET]

Public Overridable Sub UpdateFiles()

Public Sub UpdateFiles(ByVal fileMask As String)

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

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

 

Description

 

Use UpdateFiles to update files stored within the open archive file. UpdateFiles searches for extrenal files specified by FileMask,SearchAttr and ExclusionMask parameters and BaseDir property and synchronizes them with files stored within the archive. UpdateFiles uses Options.OverwriteMode to determine how to overwrite existing files inside the archive with external files from BaseDir. If Options.Recurse is set to True, UpdateFiles will search files recursively.

 

 

UpdateFiles variant without parameters uses FileMasks, ExclusionMasks and Options.SearchAttr to specify search conditions and to exclude files from update 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 updated.

 

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

 

The exclusionMask specifies files to be excluded from update operation.

 

Note:    If you need to update certain files without compression set NoCompressionMasks property. 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 Apr 16, 2024