trivial-extract
2016-04-21
Extract .tar/.tar.gz/.zip files.
Upstream URL
Author
Fernando Borretti <eudoxiahp@gmail.com>, Fernando Borretti
Maintainer
Fernando Borretti <eudoxiahp@gmail.com>
License
MIT
trivial-extract
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.