Support for XZ Compression

Issue #99 new
Sobel-Sorenson, Chandler - (scar) created an issue

The PKWARE .ZIP File Format Specification supports XZ Compression (Section 4.4.5 compression method: (2 bytes): 95 - XZ Compression).

Also, libzip supports XZ Compression.

In the data sets I’m working with, XZ has a much better ratio and I wanted to use it.  However, I could not even find an app that could create an xz-compressed zip archive (Info-Zip version only implements bzip2 method, in addition to the standard deflate method).  I guess such an app would need to exist first, because i didn’t notice a way to specify the compression method with fuse-zip either?  (Although. I was able to create a Bzip2-compressed ZIP archive with zip’s -Z bzip2 option, and fuse-zip seems to be happily working with it, at least)

Thanks

Comments (2)

  1. Alexander Galanin repo owner

    Hi!

    fuse-zip does not implement compression algorithms itself but relies on libzip library. Previously I created an issue on libzip to support Deflate64 compression (see issue #58): https://github.com/nih-at/libzip/issues/116. libzip authors doesn’t want to implement new methods but will accept patches. I think that they will answer the same for XZ support.

    fuse-zip currently does not have options to specify compression level or compression method for new files. Level and method are auto-selected by libzip (medium compression and deflate method). See issue #64.

  2. Log in to comment