adm-zip icon indicating copy to clipboard operation
adm-zip copied to clipboard

unzip error ( using on meteor )

Open ChJJin opened this issue 11 years ago • 7 comments

the code of compression:

zip = new AdmZip();
zip.addLocalFolder(folder);
zip.writeZip(zipPath);

it works, but when I decompress the zip file, the followed error occurred.

error:  invalid compressed data to inflate

error:  invalid compressed data to inflate

do I miss something ?

ChJJin avatar Jan 18 '14 09:01 ChJJin

I can't decompress the archive in finder in Mac OS

miukki avatar Jan 24 '14 14:01 miukki

By hand can't decompress , corrupted jpg and gif files

miukki avatar Jan 24 '14 15:01 miukki

I've been running into this as well. Using 'zip -T foo.zip' on the command line will tell me which file in the archive is bad. Usually, I rebuild the archive with a the offending file renamed and it magically works. I have no idea what the actual problem is.

Subterrane avatar Mar 28 '14 18:03 Subterrane

+1 I tried to write bad files directly through fs.writeFile and it works well, so why it's bad?

Alexorz avatar Nov 06 '14 02:11 Alexorz

It's not bad files.The folder is gone,When unzip the file.This function add files in folder,but not include the folder itself.How to deal with it?

bengle avatar Jun 05 '15 08:06 bengle

OK,zhe folder bug is fixed.

bengle avatar Jun 23 '15 11:06 bengle

how did you fix it?@bengle

cherish1260 avatar Sep 19 '17 03:09 cherish1260