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 multipart (*.part1.rar, *.part2.rar) support? #207

Open
oO0XX0Oo opened this issue Dec 21, 2019 · 3 comments
Open

rar multipart (*.part1.rar, *.part2.rar) support? #207

oO0XX0Oo opened this issue Dec 21, 2019 · 3 comments

Comments

@oO0XX0Oo
Copy link

Hi,

I have a lot of multipart .rar archives that follow the pattern from the title

<name>.part1.rar
<name>.part2.rar
<name>.part<x>.rar

but when I execute a command like this:
arc.exe -overwrite unarchive "R:\melodies.part1.rar" "R:\melodies"

I only get the message:
scanning source archive: scanning tarball's file listing: rardecode: archive continues in next volume
and no extraction is done...

I'm on Windows, using arc v3.2

@oO0XX0Oo oO0XX0Oo changed the title rar multipart (*.part1.rar, *part2.rar) support? rar multipart (*.part1.rar, *.part2.rar) support? Dec 30, 2019
@tgulacsi
Copy link
Contributor

rardecode documentation says "NewReader only supports single volume archives. Multi-volume archives must use OpenReader. "

Rar.Extract may use OpenReader iff sourceArchive.(interface {Name()string}) with that Name(), and that file exists, but this seems to be an ugly hack.
Or use it when it encounters this error...

@KyleSanderson
Copy link

Any update on this one?

@mholt
Copy link
Owner

mholt commented Nov 18, 2022

For anyone interested in proposing an implementation for this, it looks like this 7-zip Go package does something similar, for reference: https://github.com/bodgit/sevenzip/blob/46c5197162c784318b98b9a3f80289a9aa1ca51a/reader.go#L149-L155

(Please submit a proposal before going to all the work to implement it, just in case the implementation isn't a good fit or approach for this project it would make more sense to not spend all that time, probably. Thanks!)

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

4 participants