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

Description

The SkipIfNotExisting property allows you to process only files that already exist in the destination unzipping folder or, when zipping, the destination zip file.

When using the Zip method, setting SkipIfNotExisting to True will cause files that do not already exist in the destination zip file to be skipped (excluded from processing). This results in a zipping process that only replaces files that exist in the zip file but does not add any new files.

The same idea applies when using the Unzip method: setting SkipIfExisting to True will cause files that do not already exist in the destination unzipping folder to be skipped.

Files that have been excluded because of the SkipIfNotExisting 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.

Data type

Boolean

Default value

False

Declaration (DLL API)  

BOOL XzGetSkipIfNotExisting( HXCEEDZIP hZip )

void XzSetSkipIfNotExisting( HXCEEDZIP hZip, BOOL bValue )

Remarks

Folder entries are not affected by this property.

Applicable methods

Zip, Unzip

Related topics

See the SkipIfExisting, SkipIfOlderDate and SkipIfOlderVersion properties for variations on this theme.