Documentation ¶
Index ¶
- Variables
- func CreateTarballGzip(tarballFilename string, filenames []string, compressLvl int) (countedWrittenFiles int, err error)
- func CreateTarballXz(tarballFilename string, filenames []string, compressLvl int) (countedWrittenFiles int, err error)
- func Gzip(source, target string) error
- func Tar(source, target string) error
- func UnGzip(source, target string) error
- func Untar(tarball, target string) error
- func UntarGzip(sourcefile, dst string, filesList *[]string, removeDir bool) (countedWrittenFiles int, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
// Lib mapping
ChangeFileOwner = glfsfs.ChangeFileOwner
)
Functions ¶
func CreateTarballGzip ¶
func CreateTarballGzip(tarballFilename string, filenames []string, compressLvl int) (countedWrittenFiles int, err error)
CreateTarball: create tar.gz file from given filenames. -2 = HuffmanOnly (linear compression, low gain, fast compression) -1 = DefaultCompression
0 = NoCompression 1 -> 9 = BestSpeed -> BestCompression
func CreateTarballXz ¶
func CreateTarballXz(tarballFilename string, filenames []string, compressLvl int) (countedWrittenFiles int, err error)
CreateTarballLXz: create tar.xz file from given filenames. Just for fun test ... but it's really slow, no multi-threading and low size gain.
func UntarGzip ¶
func UntarGzip(sourcefile, dst string, filesList *[]string, removeDir bool) (countedWrittenFiles int, err error)
UntarGzip: unpack tar.gz files list. Return len(filesList)=0 if all files has been restored. removeDir means that, before restore folder content, the existing dir will be removed.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.