Contents - Index - Previous - Next


ZipAction property

 

Applies to

TVCLZip component

 

Declaration

property ZipAction: TZipAction = (zaUpdate, zaReplace, zaFreshen);

 

Description

The ZipAction property determines whether files will be replaced in a zip or not.  If ZipAction is set to zaUpdate then a zip entry will only be replaced if the disk file is newer than the zip entry.  If ZipAction is set to zaReplace, then the zip entry will be replaced by the disk file regardless of the file dates.  A ZipAction of zaFreshen is the same as zaUpdate, except that filenames that do not match any entries already in the zip file will be ignored and not added to the zip. 

 

IMPORTANT: When replacing files in an already existing archive, matching files on your hard drive with what is in the archive is dependant on how the StorePaths Property and the RelativePaths Property are set.  These properties should be set exactly the same as they were when the archive was originally created. The reason for this is that path information is used when comparing a file that is being zipped to the files that are already in the archive.

  

Also, be sure to include kpZipObj in your USES list when using this property.