login about faq

Hi,

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
1111


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.

link

answered Mar 13 at 12:29

jpbro's gravatar image

jpbro ♦
1.1k2618

Your answer
toggle preview

Follow this question

By Email:

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

By RSS:

Answers

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

Tags:

×87

Asked: Mar 12 at 08:23

Seen: 448 times

Last updated: Mar 13 at 12:29

powered by OSQA