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

Extracting file from rar always results in reading 0 bytes #132

Open
Niedzwiedzw opened this issue Dec 8, 2024 · 5 comments
Open

Extracting file from rar always results in reading 0 bytes #132

Niedzwiedzw opened this issue Dec 8, 2024 · 5 comments

Comments

@Niedzwiedzw
Copy link

I'm listing the files first, the file is there, I'm rewinding the file just in case and uncompress_archive_file() reads 0 bytes anyway

@Niedzwiedzw
Copy link
Author

the same problem happens when using the cli from examples - extracting entire archive works fine but extracting single file just writes empty file

@otavio
Copy link
Member

otavio commented Dec 8, 2024

Do you have an archive that we can use as a sample to reproduce the issue?

@Niedzwiedzw
Copy link
Author

https://www.nexusmods.com/fallout4/mods/68485 you can download it without creating an account I think

@otavio
Copy link
Member

otavio commented Dec 8, 2024

Is it possible for you to create a small test case with that or put the file somewhere where I can download and test it directly?

@Niedzwiedzw
Copy link
Author

Niedzwiedzw commented Dec 8, 2024

I think it's copyrighted... but the test case is

cargo run --example uncompress_tool -- uncompress-archive-file Capital\ Wasteland\ Rock-It\ Launcher\ 1\ -\ Integrated-68485-1-1-1675554438.rar ./foo "Zanthir_RockItLauncher - Texture.BA2"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants