-
Notifications
You must be signed in to change notification settings - Fork 28
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
Comments
the same problem happens when using the cli from examples - extracting entire archive works fine but extracting single file just writes empty file |
Do you have an archive that we can use as a sample to reproduce the issue? |
https://www.nexusmods.com/fallout4/mods/68485 you can download it without creating an account I think |
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? |
I think it's copyrighted... but the test case is
|
I've tried reproducing it when I recreate a fresh archive (with 7z) and insert that same file under the same path it does not happen anymore... 7z handles the archive well though |
same error for a zip archive: cargo run --example uncompress_tool -- uncompress-archive-file ./Creative\ Differences\ 3.1.2-13437-3-1-2-1716759989.zip ./foo "[CP] Rodney O'Brien/Assets/Items/Hats/PinkSummerHat.png" |
bsdtar -xvf ../Creative\ Differences\ 3.1.2-13437-3-1-2-1716759989.zip "\[CP\] Rodney O'Brien/Assets/Items/Hats/PinkSummerHat.png" this works (not sure why I have to escape the '[' bracket, without it it fails) |
other files in that archive work fine cargo run --example uncompress_tool -- uncompress-archive-file ./dupa/Creative\ Differences\ 3.1.2-13437-3-1-2-1716759989.zip ./foo "[CP] Rodney O'Brien/Assets/Items/Hats/EggHat.png" |
could it be related to this? |
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 anywayThe text was updated successfully, but these errors were encountered: