Const
A more opinionated version of unpackTarball that assumes you want to create the directory and strip the first directory out of the unpacked files.
The path to the tarball to unpack
The directory to unpack the tarball into - will be created if it doesn't exist and will throw if it exists but is not empty
The number of leading directories to strip out of the unpacked files, defaults to 1
A more opinionated version of unpackTarball that assumes you want to create the directory and strip the first directory out of the unpacked files.