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

Unable to decrompress archive containing folders (compressed with 7zip) #96

Open
DarphBobo opened this issue Feb 1, 2022 · 3 comments

Comments

@DarphBobo
Copy link

Hello,

i have some troubles decrompressing a zip file that contains folders. It seems only to be a problem if the file was created using 7zip (on Windows). If I create the archive with the build in windows tool everything works fine.

My archive looks something like that:

archive 
- somefolder
- - someotherfile
- somefile

Results in:

outputfolder
- somefolder ---> **this is a empty file now** 
- somefile

I guess its a problem with decrompess and not with 7zip (other decrompessing tools are working fine with my example archive).

Example: archive_from_7zip.zip

PS: For me it is currently not a problem, I just wanted to inform you about this behaviour.

Thanks & BG Manuel

@thisisjar
Copy link

Hello there,

does this behavior also apply to other (non-7zip) .zip files containing nested folder structures?

@thisisjar
Copy link

thisisjar commented Jan 17, 2023

Screenshot 2023-01-17 112051
Can confirm - nested folder structure seems to break Node. I fear, like many (un)zip packages on npm - this one only supports unzipping all files inside a .zip.

@magicdawn
Copy link

magicdawn commented Apr 26, 2023

using decompress(a_epub_file, dir) nothing happens: no error reported, no extracted files.

ePub file is generally a zip file. macOS Keka.app can extract it.

adm-zip can extract it. I guess the reason maybe the same: conatins folders

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

3 participants