mholt/archives

Support for multi-part ZIP files

Open

#66 创建于 2026年4月24日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)Go (37 fork)github user discovery
enhancementhelp wanted

仓库指标

Star
 (417 star)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南