Liking cljdoc? Tell your friends :D

me.raynes.fs.compression

Compression utilities.

Compression utilities.
raw docstring

bunzip2clj

(bunzip2 source)
(bunzip2 source target)

Takes a path to a bzip2 file source and uncompresses it.

Takes a path to a bzip2 file `source` and uncompresses it.
sourceraw docstring

gunzipclj

(gunzip source)
(gunzip source target)

Takes a path to a gzip file source and unzips it.

Takes a path to a gzip file `source` and unzips it.
sourceraw docstring

make-zip-streamclj

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

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.
sourceraw docstring

make-zip-stream-from-filesclj

(make-zip-stream-from-files fpaths)

Like make-zip-stream but takes a sequential of file paths and builds filename-content-pairs based on those

Like make-zip-stream but takes a sequential of file paths and builds filename-content-pairs
based on those
sourceraw docstring

untarclj

(untar source)
(untar source target)

Takes a tarfile source and untars it to target.

Takes a tarfile `source` and untars it to `target`.
sourceraw docstring

unxzclj

(unxz source)
(unxz source target)

Takes a path to a xz file source and uncompresses it.

Takes a path to a xz file `source` and uncompresses it.
sourceraw docstring

unzipclj

(unzip source)
(unzip source target-dir)

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

Takes the path to a zipfile `source` and unzips it to target-dir.
sourceraw docstring

zipclj

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

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.
sourceraw docstring

zip-filesclj

(zip-files filename fpaths)

Zip files provided in argument vector to a single zip. Converts the argument list:

(fpath1 fpath2...)

into filename-content -pairs, using the original file's basename as the filename in zip`and slurping the content:

```([fpath1-basename fpath1-content] [fpath2-basename fpath2-content]...)``

Zip files provided in argument vector to a single zip. Converts the argument list:

```(fpath1 fpath2...)```

into filename-content -pairs, using the original file's basename as the filename in zip`and slurping the content:

```([fpath1-basename fpath1-content] [fpath2-basename fpath2-content]...)``
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close