-
-
Notifications
You must be signed in to change notification settings - Fork 63
Description
Hey! First off, thanks for the lovely library...we've been using it for a good while with no issues.
Recently, a few users (3 so far, but not all of them by any means) have been getting this Bad Archive issue.
The code is the same as its always been, but the archive they unzip changes regularly. It is currently compressed w 7zip, and is about 20gb large. The library is being run from a packaged windows electron app. I download the zip file to a temp location, then unzip it from there.
We have tried having them run as administrator, but to no avail. I've also worked with one to make sure the folder permissions were as liberal as possible.
Here is the code that is doing the decompression:
`const zip = new StreamZip({
file: zipPath,
storeEntries: true,
});
zip.on('ready', () => {
const zipPathArray = zipPath.split('/');
const decompressFolder = zipPathArray.slice(0, -1).join('/');
zip.extract(null, decompressFolder, (err: any, count: any) => {
console.log(err ? 'Extract error' : `Extracted ${count} entries`);
if (!err) {
console.log('DECOMPRESSION COMPLETE');
}
zip.close();
event.reply('cleanup-start', zipPath);
});
});`
Thanks again for any insight. I have been trying to debug this myself for 3 weeks before bugging you, but we have thousands of users and I am just stuck on where else to look.