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

supports done([error]) as optional parameter for onEntry #69

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

mikebq
Copy link

@mikebq mikebq commented Apr 6, 2018

Allows onEntry to receive an extra parameter that can be used to signal if the extraction should continue or fail. This allows onEntry to analyse the entry with libraries that return results in a callback and then signal wether extraction should continue or be cancelled. For example, using mmmagic to check that the contents of a zip are of certain file types. Useful if you are receiving untrusted zip files and want to ensure that they only contain certain types of files.

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

Successfully merging this pull request may close these issues.

None yet

1 participant