libzip
libzip copied to clipboard
does libzip support Multi-disk ZIP?
https://bugs.kde.org/show_bug.cgi?id=399949
for example, sample.zip
and sample.z01
.
No, currently not. I've never met multi-disk zips in the wild.
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
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
?
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).
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.