The DeleteZippedFiles property determines whether the library will delete the files that have been zipped as a result of a successful call to the Zip method.
When the DeleteZippedFiles property is set to False (the default value), files that have been zipped will not be deleted. When the DeleteZippedFiles property is set to True, if no errors occur while creating the zip file or updating an existing zip file, then the library will test the zip file (it automatically calls the TestZipFile method internally, with the compressed data checking enabled) and if the zip file passes the integrity test, the files that were zipped are deleted. The testing phase helps ensure that files are never lost due to unforeseen system behavior.
Each file deleted as a result of setting this property to True will cause the DeletingFile event to be triggered. During the DeleteFile event, your application has the opportunity to review each file's specifications (time stamps, sizes and attributes) and to decide whether or not that particular file should be deleted or not.
During the test phase, the same events are triggered as when running the TestZipFile method.
Boolean
False
Declaration (DLL API) | |
---|---|
BOOL XzGetDeleteZippedFiles( HXCEEDZIP hZip ); |
None