mrkkrp / zip

Efficient library for manipulating zip archives
Other
81 stars 27 forks source link

Create a zip file without ZIP64 extension #33

Closed mezzomondo closed 7 years ago

mezzomondo commented 7 years ago

Hi,

I have a list of 10ish files in a folder all well under 300kB each. For compatibility reasons I need to create a zip file containing this folder without the ZIP64 extension but I can't find anywhere in the code a way to do it.

Is it possible?

(thanks)

mrkkrp commented 7 years ago

Zip64 is only enabled when it's necessary (either when there are too many files to store in vanilla Zip archive or if total size is too big).

mezzomondo commented 7 years ago

Ok, so there's no way to trigger (or better, un-trigger) it. Correct?

(because it seems to me that in my case neither there are too many files nor the total size is over 3.5MB)

Anyway thank you, I'll try to find some alternative.

mrkkrp commented 7 years ago

Wait, are you saying that Zip64 is enabled for you even though it shouldn't be enabled?

mrkkrp commented 7 years ago

To re-iterate:

Unless you want to report a bug, I don't see how this may be a problem.

mrkkrp commented 7 years ago

I don't understand why you think you need to find an alternative, but the best option is probably zip-archive it doesn't supprot Zip64 and reads everything into memory, so unless you feed big files you should be safe. Closing.

mezzomondo commented 7 years ago

To be honest I don't absolutely want to find an alternative :-) I've got this problem (that is most likely a remote problem but completely out of my control) and I'm trying to find what options I have to solve it.