coderaiser / node-onezip

Pack and extract zip archives with emitter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Extract not working

LeBressan opened this issue · comments

Hi,
I am doing an app that is compressing in C# and extracting the content in electron (JS).

The extract is not working for any content that has been compressed to zip using the MS C# lib System.IO.Compression with ZipFile.CreateFromDirectory(pathFolderToZip, Destination.zip)

Not sure if this is a security, encoding or a mime type issue.

Hope this help to make the module better.

Kind regards,
C

What error do you have while extracting? Could you please try to use yauzl, is it works for you?

So I am using "extract-zip" module now, and everything works fine.

I was getting the event "extracting started" and then I get a
Error: ENOENT: No such file or directory, open "path/to/file.exe"
It is like the extract is looking for directory instead of files, but this only happened with zip files I was creating from a C# app. Using 7zip for example (on the same directory than my C# app), your module worked fine.. So i am a bit confused what could be the error.

Hope this help.

Could you please attach zip file that you can't extract?

Closed due to absence of archive example.