libzip icon indicating copy to clipboard operation
libzip copied to clipboard

does libzip support Multi-disk ZIP?

Open Firestar-Reimu opened this issue 2 years ago • 5 comments

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

for example, sample.zip and sample.z01.

Firestar-Reimu avatar Jun 30 '22 06:06 Firestar-Reimu

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

0-wiz-0 avatar Jun 30 '22 08:06 0-wiz-0

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

Firestar-Reimu avatar Jun 30 '22 08:06 Firestar-Reimu

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?

fabiang avatar Dec 31 '22 00:12 fabiang

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).

0-wiz-0 avatar Dec 31 '22 07:12 0-wiz-0

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.

fdegros avatar Oct 06 '23 01:10 fdegros