Skip to content

Add a callback to onEntry that can be used to continue or cancel extraction #68

@mikebq

Description

@mikebq

I have a need to inspect the contents of an archive and verify that it contains only certain file types.
I can supply an onEntry function in the options passed into extract to inspect the entry and check if it is allowed or not. However I do not see a way to signal back to extract-zip whether the extraction should continue or be cancelled. Ideally I want to use a library such as mmmagic to do deeper inspection where the result is returned in a callback.
It would be very useful if onEntry took a third parameter, a function, that could be called to continue/cancel the extraction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions