Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question : Unable to find end of central directory record #16

Open
DavidVergison opened this issue Jan 6, 2022 · 0 comments
Open

question : Unable to find end of central directory record #16

DavidVergison opened this issue Jan 6, 2022 · 0 comments

Comments

@DavidVergison
Copy link

I have some zipfile saying "Unable to find end of central directory record"

        var ZIP = require('zip');
        var data = Buffer.from(r)
        var reader = ZIP.Reader(data);

        //console.log(reader)

        reader.forEach(function (entry) {              <= here on the forEach
            console.log(entry)
        });

I can unzip them with the linux unzip command, but not with this tool (nor any other I can found)

The linux unzipping say :

unzip -o sortie_xxar400.zip
Archive:  sortie_xxar400.zip
warning [sortie_xxar400.zip]:  22787 extra bytes at beginning or within zipfile
  (attempting to process anyway)
  inflating: 3128340.log
  inflating: ESS_O_3128340_BIP.text
  inflating: ESS_O_3128340_BIP.xml

Is there's a way to "force" the unzipping (attempting to process anyway) in typescript ?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant