Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

does libzip support Multi-disk ZIP? #307

Closed
Firestar-Reimu opened this issue Jun 30, 2022 · 6 comments
Closed

does libzip support Multi-disk ZIP? #307

Firestar-Reimu opened this issue Jun 30, 2022 · 6 comments
Labels
enhancement Request a new feature.

Comments

@Firestar-Reimu
Copy link

https://bugs.kde.org/show_bug.cgi?id=399949

for example, sample.zip and sample.z01.

@Firestar-Reimu Firestar-Reimu added the enhancement Request a new feature. label Jun 30, 2022
@0-wiz-0
Copy link
Member

0-wiz-0 commented Jun 30, 2022

No, currently not.
I've never met multi-disk zips in the wild.

@Firestar-Reimu
Copy link
Author

Firestar-Reimu commented Jun 30, 2022

for example: https://github.com/manjaro-plasma/download/releases

the zip downloaded here has a z01 file

That is because github does not allow single file > 1.9GB, so they split the zip in 2 parts

@fabiang
Copy link

fabiang commented Dec 31, 2022

Can't you simply do cat manjaro-kde-22.12-development-unstable-221230-linux61.iso.zip manjaro-kde-22.12-development-unstable-221230-linux61.iso.z01 > manjaro-kde-22.12-development-unstable-221230-linux61-complete.iso.zip?

@0-wiz-0
Copy link
Member

0-wiz-0 commented Dec 31, 2022

No, that's not possible - all the file offsets inside the zip structure (e.g. where to find the local headers and thus file data) are of the form <disk, offset> and if you cat them into one file, all will be wrong (except for the one for the first entry).

@fdegros
Copy link

fdegros commented Oct 6, 2023

I've never met multi-disk zips in the wild.

To support this point, only 0.02% of all the ZIP archives opened by the ChromeOS Files App fail with ZIP_ER_MULTIDISK "Multi-disk zip archives not supported". So, multi-disk archives seem indeed quite rare.

@dillof
Copy link
Member

dillof commented Aug 21, 2024

The provided example files don't seem to be valid (the first file starts with a data descriptor, not with a local header). Since we won't implement multi-disk support and no one else seems to be willing to either, I'll close this issue.

@dillof dillof closed this as completed Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Request a new feature.
Projects
None yet
Development

No branches or pull requests

5 participants