archiver
archiver copied to clipboard
rar multipart (*.part1.rar, *.part2.rar) support?
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
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...
Any update on this one?
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!)