-
Notifications
You must be signed in to change notification settings - Fork 76
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
Strip option causing error #50
Comments
Same error, change
To:
Will resolve this problem. |
Can this be merged ? |
+1 for merge, fixed my error |
Please merge and release new version in npm. |
+1 for merge, fixed my error as well |
merge this please |
For folks running into this, the cause is that this map() doesn't return anything if #51 isn't the correct fix for this, it'd be better to move the You can work around it by adding this filter to your unzipper.extract( {
path: '/some/path',
strip: 1,
filter: ( file ) => file.type !== 'Directory',
} ); This seems to work for me, but it might fail under some circumstances. Off the top of my head, I guess it means that empty directories won't be extracted, and there are probably other side effects. |
When i specify a strip option, I get the following error:
The code that generates the error is below:
The My-Archive.zip file I am using can be downloaded from here:
https://s3.amazonaws.com/jimtars/My-Archive.zip
The zip file was created using 7zip on Windows 8.1.
The text was updated successfully, but these errors were encountered: