archiver icon indicating copy to clipboard operation
archiver copied to clipboard

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

Open oO0XX0Oo opened this issue 5 years ago • 3 comments

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 avatar Dec 21 '19 22:12 oO0XX0Oo

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...

tgulacsi avatar Jan 11 '22 09:01 tgulacsi

Any update on this one?

KyleSanderson avatar Oct 24 '22 08:10 KyleSanderson

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!)

mholt avatar Nov 18 '22 04:11 mholt