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

How to check archive file is valid before extract? #15

Closed
hcaihao opened this issue Sep 4, 2018 · 3 comments
Closed

How to check archive file is valid before extract? #15

hcaihao opened this issue Sep 4, 2018 · 3 comments
Assignees

Comments

@hcaihao
Copy link

hcaihao commented Sep 4, 2018

And how to determine archive file format, such as a .rar file is RAR or RAR5?

@rikyoz
Copy link
Owner

rikyoz commented Sep 4, 2018

Checking if an archive is valid
In the new version v3.0.0, you can use the BitExtractor::test method, which tests the input archive without extracting it and throws a BitException if it is not valid.
Earlier versions of bit7z (<=2.1) do not support archive testing.

Determining the archive file format
See issue #16

@rikyoz rikyoz self-assigned this Sep 4, 2018
@rikyoz rikyoz added this to the v3.1 milestone Sep 4, 2018
@hcaihao
Copy link
Author

hcaihao commented Sep 5, 2018

Got it! thank you!

@rikyoz
Copy link
Owner

rikyoz commented Sep 5, 2018

You're welcome!

@rikyoz rikyoz removed this from the v3.1 milestone Sep 7, 2018
@rikyoz rikyoz closed this as completed Sep 7, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants