Xceed Zip Compression Library Documentation
FilesToExclude property
Xceed Zip control reference > Xceed Zip control properties > FilesToExclude property

Description

The FilesToExclude property lets you exclude specific files or folders from the list of files to process provided to the FilesToProcess property.

Wildcards can be used to exclude multiple files.

To exclude a folder and its entire contents, specify the path and folder name, followed by a backslash and a star ("\*").

Files or folders that match the items specified in the FilesToExclude property will be tagged as "excluded" when the ZipPreprocessingFile or UnzipPreprocessingFile event is triggered, and will not be processed unless you change the value of the excluded parameter to False.

The FilesToExclude property is used the same way as the FilesToProcess property:

Data type

String

Default value

Empty

Declaration (DLL API)  

UINT XzGetFilesToExclude( HXCEEDZIP hZip, TCHAR* pszBuffer, UINT uMaxLength )

void XzSetFilesToExclude( HXCEEDZIP hZip, const TCHAR* pszValue )

Remarks

When using relative paths , they must be relative to the application's current directory , or the folder specified in the BasePath property if it has been set.

To exclude the folder's entry only, but not the folder's contents, specify the path and folder name followed by a backslash ("\"). This is allowed because a zip file can contain separate entries for folders and you may want to include or exclude these folder entries. 

The length of the file names must not exceed 260 characters (MAX_PATH).

Applicable methods

Zip, Unzip, ListZipContents, PreviewFiles, RemoveFiles

Related topics

To exclude files based on criteria other than file names, refer to the filtering properties.