Skip to content

Would it be feasible to modify the File callback to skip a file? #142

Answered by rikyoz
ra-dave asked this question in Q&A
Discussion options

You must be logged in to vote

Currently, the only way to skip extracting a file is through the progress callback, which requires returning a boolean (true means continue, false stop).
Then, you can use both the progress and the file callbacks to achieve your desired behavior.

A file callback returning a boolean might be handy and would simplify your use case. However, it would also be a breaking change in the current API, which I didn't plan. I need to evaluate whether it's the case to implement it before releasing the stable v4; otherwise, it would require a new major release (I'm trying to follow the semantic versioning).

Anyway, thanks for the suggestion!

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ra-dave
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants