mholt/archives

Support for multi-part ZIP files

Open

#66 aperta il 24 apr 2026

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)Go (37 fork)github user discovery
enhancementhelp wanted

Metriche repository

Star
 (417 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

What would you like to have changed?

Add support for unzipping archive files (other than RAR) that are split into multiple parts

Why is this feature a useful, necessary, and/or important addition to this project?

Usually, zip files that are sent over emails are split into multiple part in order to avoid size limit on attachments. In order to unzip them, we need to put all of the parts together. Usually these files are ordered by their number on their extension, for example: .zip, .z01, .z02, etc.

What alternatives are there, or what are you doing in the meantime to work around the lack of this feature?

For now, I use MacOS's native zip and unzip command, which is provided by libzip. I usually use these command in order to unzip them:

zip -s- img-pt.zip -O combined.zip
unzip combined.zip

Also, I found an alternative command using 7zip:

7z x img-pt.zip

Please link to any relevant issues, pull requests, or other discussions.

I notice that we already supports unarchiving RAR files that are split into multiple files: https://github.com/mholt/archives/issues/20

Also, bodgit/sevenzip already supports for unarchiving multiple ZIP files: https://github.com/bodgit/sevenzip/issues/2

Guida contributor