Unable to extract the zip file if it contains any warnings

1.2k Views Asked by At

I have a zip file, on unzipping, it extracts all the files successfully but also gives the following warning message: "There are some data after the end of the payload data". However, when I try to unzip the same file using adm-zip, I am getting error "Invalid or unsupported zip format. NO END header found". For other zip files that do not give that warning message, it is working file. I am trying to find if there is any setting, where adm-zip ignore these warnings, and continue extracting.
Following is the code that I am using to extract the files.

const zip = new AdmZip('C:\\folder\\file.zip');
zip.extractAllTo('C:\\folder\\Result\\', true);
0

There are 0 best solutions below