Documentation ¶
Overview ¶
Package targz contains methods to create and extract tar gz archives.
Usage (discarding potential errors):
targz.Compress("path/to/the/directory/to/compress", "my_archive.tar.gz")
This creates an archive in ./my_archive.tar.gz with the folder "compress" (last in the path).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Compress ¶
Compress creates a archive from the folder inputFilePath points to in the file outputFilePath points to. Only adds the last directory in inputFilePath to the archive, not the whole path. It tries to create the directory structure outputFilePath contains if it doesn't exist. It returns potential errors to be checked or nil if everything works.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.