Created zip's under Windows are corrupt
See original GitHub issueI did the following to create a zip file:
var zip = new AdmZip();
zip.addLocalFolder(dir);
zip.writeZip(zipfilename);
It worked fine under Linux & Mac but the zip file had garbage under Windows.
Issue Analytics
- State:
- Created 9 years ago
- Comments:14 (1 by maintainers)
Top Results From Across the Web
How does a zip file become corrupted and how can I fix it?
There are various reasons for a zip file corruption. Incomplete download of a zip file from a website, viruses, file system errors, ...
Read more >How to Repair a Corrupted ZIP Archive in Windows 10 & 11
Consequently, the files in a corrupted ZIP aren't accessible. Here are a few ways to feasibly repair a corrupted ZIP in Windows 10...
Read more >Causes for a bad or corrupt Zip file - Corel Knowledge Base
If the damaged Zip file is on a removable disk, the removable disk may be physically damaged, or the data on it may...
Read more >How to repair zipped files with WinZip
How to repair zip file(s) in WinZip ; Step 1 Open an administrator Command Prompt window ; Step 2 Right click the start...
Read more >How to Repair Corrupt ZIP File with File Repair Tool
If you tried to unzip a file on a different disk other than the one it was created on, and you are getting...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

this issue is actually fixed with eb9291015540bc11157494d384e020cd16cfcaf4 unfortunately 06e1f6853acd97897ba3fd7928a379a71731d01f breaks this lib again if you call
addLocalFolderit again. I have fixed this problem with my pull request. So we only have to wait for my pull request to get merged and a new version pushed to npmJap, you guys should switch to an other zipper. I successfuly changed to https://github.com/archiverjs/node-archiver