Documentation ¶
Overview ¶
Package tar provides functions to create or extract tar archives.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Create ¶
Create creates a tar archive from a directory. The resulting tar archive format is in POSIX.1 format.
func CreateInPlace ¶
CreateInPlace creates a tar archive from a directory in place which means that the original directory is removed after the tar archive is created. The .tar suffix will be added to dirPath once the archive is created.
func ExtractInPlace ¶
ExtractInPlace extracts a tar archive, in place, given its path. The original tar archive is removed after extraction and only its content remains. Note that archivePath is expected to have a file extension.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.