Documentation ¶
Overview ¶
Package archive provides functions to archive and unarchive files.
Index ¶
- Variables
- func TarXZExtractAll(tarxzArchive string, destinationDir string) error
- func TarXZExtractFile(tarxzArchive string, path string, destinationDir string) error
- func Unzip(source, destination string) error
- func WalkTarXZArchive(tarxzArchive string, walkFunc func(*tar.Reader, *tar.Header) error) error
- func Zip(sources []string, destination string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrStopWalk = errors.New("stop walk")
ErrStopWalk can be returned in WalkTarXZArchive to stop walking
Functions ¶
func TarXZExtractAll ¶
TarXZExtractAll extracts all regular files from the .tar.xz archive
func TarXZExtractFile ¶
TarXZExtractFile extracts a single file at path from the provided archive
func WalkTarXZArchive ¶
WalkTarXZArchive walks the provided .tar.xz archive, calling walkFunc for each entry. If ErrStopWalk is returned from walkFunc, then the walk is stopped.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.