theCrow
theCrow

Reputation: 346

zipx with xz compression(95)

When using zipx with xz, zip format will be same, only compression method changes to 5F, right? But my doubt is, when i want to compress a folder with multiple file, how does zip do it using xz? Because, xz only supports to compress one single file.. So winzip might have to do some operation to make the folder and its contents to a single file (operation like tar or cpio) So what METHOD does it use to archieve all the files into a single one? We tried to zip the folder with no compression to make it to one file, and apply xz on that, but we need to unzip twice to get the orginal folder. How does zipx do it in one unzip?

Upvotes: 0

Views: 1132

Answers (1)

Mark Adler
Mark Adler

Reputation: 112374

The zip file format compresses each file individually. So it can use xz for that, no problem, which compresses one file. The zip format is individual file compression followed by archiving. Things like .tar.gz or .tar.xz are the opposite, which is archiving followed by compression of the entire archive.

Upvotes: 2

Related Questions