login about faq


I don't want to call WriteAndClose (Chilkat ZIP) is not necessary. How can i tell if any actions on the ZIP actually changed the ZIP? Is there a 'dirty' property?

Thank you.

asked Mar 12 at 08:23

Gerben%20Abbink's gravatar image

Gerben Abbink

Perhaps you can just set your own flag whenever you call any methods that would modify a ZIP - if it's True then call WriteAndClose, otherwise skip WriteZipAndClose.

Another option would be to cache values like FileCount, Entry FileNames and CRCs, etc.. when you open the Zip. Before calling WriteZipAndClose, compare the cached values to the current values and only call WriteZipAndClose if there's a difference.


answered Mar 13 at 12:29

jpbro's gravatar image

jpbro ♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Mar 12 at 08:23

Seen: 426 times

Last updated: Mar 13 at 12:29

powered by OSQA