adm-zip icon indicating copy to clipboard operation
adm-zip copied to clipboard

extractAllTo skipping files

Open L1qu1d1c3 opened this issue 6 years ago • 5 comments

Hello, I've encountered the problem that i'm trying to unzip a node_modules directory that contains around 1200 folders, it does not unzip all files. Out of those 1200 folders, only 1166 were extracted. I've identified the folders in particular that do not get extracted and these do not have anything strange in them, they're not empty.

My code is:

var unzip = new zip(path + '/' + filename);
unzip.extractAllTo(path, true);

I'm using adm-zip 0.4.7 with node v 6.11.5 and npm 5.8.0 Thanks!

L1qu1d1c3 avatar Apr 12 '18 14:04 L1qu1d1c3

@L1qu1d1c3 I have the same issue on much more smaller set of files and folders

tormozz48 avatar Sep 04 '18 21:09 tormozz48

I have the same issue too, sometimes there is only root file which is empty

MaXianZhang avatar Nov 19 '18 13:11 MaXianZhang

extractAllTo would use fs module,my problem is this, when fs.readFileSync is working somewhere else , extractAllTo can not work on every files

MaXianZhang avatar Nov 19 '18 13:11 MaXianZhang

Also having this issue. I get this issue when extracting the boost c++ windows zip : https://dl.bintray.com/boostorg/release/1.71.0/source/boost_1_71_0.zip

fridgerator avatar Nov 11 '19 15:11 fridgerator

I have the save issue. Both in osx and windows. Windows missing empty folder, and osx missing a lot of files.

This is my test zip:

https://registry.npmmirror.com/-/binary/nwjs/v0.82.0/nwjs-v0.82.0-win-x64.zip https://registry.npmmirror.com/-/binary/nwjs/v0.82.0/nwjs-v0.82.0-osx-x64.zip

qq253498229 avatar Dec 22 '23 01:12 qq253498229