-
Notifications
You must be signed in to change notification settings - Fork 3
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
tar.xz produces "InvalidData" error #1
Comments
|
We have moved to The changes were not tested. You can have a try at https://github.com/JoyMoe/archiver-rs/tree/issue-1 |
Opening the archieve now works, extracing produces:
I removed my call to archieve.files().unwrap().len() beforehand, but the error still comes.
The "opened" output is printed, then the error. This worked well for zip files. |
gotcha, I'll come back asap. |
I'm starting to think the problem is more with the tar crate, I'm getting the same issue with the following code:
The tmp.tar file is created and can be extracted with other tools like 7zip without issues. |
I suggest not doing operations multi times. It may require |
This prevents using extract_single with any .tar files: #find files
The first call to extract_single succeeds but the second produces the same "cannot call entries unless archive is at position 0" error even if you swap the order of the extract_single calls. But: it works if I extract all at once, which prevents me from displaying progress and the output path is wrong so I need to move it around afterwards. |
@arturh85 sorry for the delay, I've tried to add features to deal with your issue, but it will be dirty and ugly. cuz I suggest you to open your tar file with after your first it may solve your problem. |
I'm trying to extract a tar.xz file and I get an InvalidData io error.
The relevant pattern for .tar.xz seems to be missing in lib.rs:
When I run the following code I:
I get 0xfd and 0x37 as the first two bytes so would suggest the following addition:
Thank you for this great crate!
The text was updated successfully, but these errors were encountered: