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

Rar archive always errors on extraction #131

Open
R3alCl0ud opened this issue Sep 22, 2024 · 0 comments
Open

Rar archive always errors on extraction #131

R3alCl0ud opened this issue Sep 22, 2024 · 0 comments

Comments

@R3alCl0ud
Copy link

When you uncompress a rar archive the result returned is always an error even if it actually completed successfully.

If it completed successfully the error return is always Extraction error: 'Can't decompress an entry marked as a directory'

compress-tools: 0.15.1
rustc: >= 1.80.0 (051478957 2024-07-21) (confirmed on rustc 1.81.0 aswell)
OS: has been replicated on Arch linux and Windows.
real example from my project: https://github.com/R3alCl0ud/Rust4Diva/blob/v0.3.1/src/modmanagement.rs#L486

let mut file = File::open("path/to/archive.rar");
let dest = PathBuf::from("/tmp/dest");
// returns "Extraction error: 'Can't decompress an entry marked as a directory'"
uncompress_archive(&mut file, buf.as_path(), Ownership::Preserve) 
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

1 participant