mholt/archives

Support for multi-part ZIP files

Open

#66 opened on Apr 24, 2026

View on GitHub
 (3 comments) (0 reactions) (0 assignees)Go (37 forks)github user discovery
enhancementhelp wanted

Repository metrics

Stars
 (417 stars)
PR merge metrics
 (PR metrics pending)

Description

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

Contributor guide