me.raynes.fs.compression documentation

Compression utilities.

bunzip2

(bunzip2 source)(bunzip2 source target)
Takes a path to a bzip2 file source and uncompresses it.

gunzip

(gunzip source)(gunzip source target)
Takes a path to a gzip file source and unzips it.

make-zip-stream

(make-zip-stream & filename-content-pairs)
Create zip file(s) stream. You must provide a vector of the
following form: [[filename1 content1][filename2 content2]...].

You can provide either strings or byte-arrays as content.

The piped streams are used to create content on the fly, which means
this can be used to make compressed files without even writing them
to disk.

untar

(untar source)(untar source target)
Takes a tarfile source and untars it to target.

unxz

(unxz source)(unxz source target)
Takes a path to a xz file source and uncompresses it.

unzip

(unzip source)(unzip source target-dir)
Takes the path to a zipfile source and unzips it to target-dir.

zip

(zip filename & filename-content-pairs)
Create zip file(s) on the fly. You must provide a vector of the
following form: [[filename1 content1][filename2 content2]...].

You can provide either strings or byte-arrays as content.