Module unarchive

Unpack an archive.

Info:

Functions

unpack(dest, creates)
Unpack a tar, zip or rar archive.

Promiser:

    path of archive

Note:

    detects archive type using the 3 letter filename extension e.g. tar, zip, rar

Aliases:

  • untar
  • unzip
  • unrar

Parameters:

  • dest path where the archive should unpacked [REQUIRED] [ALIAS: directory]
  • creates path to a file, if already existing will skip the unpacking step

Usage:

    unarchive.unpack("/tmp/file.tar"){
           dest = "/tmp/test"
        creates = "/tmp/test/file.1"
    }
generated by LDoc 1.4.6 Last updated 2017-05-09 15:50:38