Zips and datestamps

Just starting out? Need help? Post your questions and find answers here.
mikejs
Enthusiast
Enthusiast
Posts: 160
Joined: Thu Oct 21, 2010 9:46 pm

Zips and datestamps

Post by mikejs »

When using the Packer library to examine the contents of a zip file, it looks like there is no way to read the timestamps of the zipped files. Is that correct?

i.e. after using OpenPack(), ExaminePack(), and NextPackEntry(), there are PackEntrySize(), PackEntryName() and PackEntryType(), but no PackEntryDate().

If I open a zip in Explorer or other Zip tool, the files do have timestamps on them, inside the zip.

I'd prefer to avoid having to extract the files to get the datestamp information.

Storing an extra file in the zip with the timestamp information in it is an option, but clunky given that the information is in there.

Any suggestions?

(PB 5.60)