login about faq

While trying out ZIP2 I observed that it aborts unzipping/extracting operation at the point where it encounters error or corruption in the zip file.

Can we handle this and tell ZIP2 to skip all files that are corrupted and continue exacting rest of the files in the zip file?


Yogi Yang

asked Aug 20 '13 at 07:04

Yogi%20Yang's gravatar image

Yogi Yang

One thought: If the zip archive headers are OK, and the corruption has to do with the compressed data within an entry, then check to see if you can write code that iterates over all of the files within the .zip. See the online examples at example-code.com for samples that demonstrate how to iterate over the entries in a zip archive. If this is possible, then you can get the ZipEntry object for each, and then unzip each entry individually. The corrupted ones will fail, but you should be able to ignore the failure and continue with the next loop iteration to get the next ZipEntry object, etc.


answered Aug 20 '13 at 18:06

chilkat's gravatar image

chilkat ♦♦

Unfortunately, I don't think it's possible.


answered Aug 20 '13 at 17:49

chilkat's gravatar image

chilkat ♦♦

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: Aug 20 '13 at 07:04

Seen: 3,189 times

Last updated: Oct 03 '14 at 23:45

powered by OSQA