Extract compressed files painlessly.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
t
.gitignore
.travis.yml
README.md
trivial-extract-test.asd
trivial-extract.asd

README.md

trivial-extract

Build Status

You have an archive. Maybe it's a .tar, or a .tar.gz, or .zip. You don't know and don't care. You want its contents out.

When available, trivial-extract uses the native decompression utilities (e.g. tar, unzip), which are usually faster than the Common Lisp versions.

Usage

Contents are extracted to the file's containing directory. All functions return t on success.

;; Best effort, do what I mean
(trivial-extract:extract #p"~/path/to/file.{tar|tar.gz|zip}")

;; Content-specific
(trivial-extract:extract-tar #p"~/file.tar")
(trivial-extract:extract-gzip #p"~/file.tar.gz")
(trivial-extract:extract-zip #p"~/file.zip")

License

Copyright (c) 2014-2015 Fernando Borretti (eudoxiahp@gmail.com)

Licensed under the MIT License.