archiver

package
v1.5.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Chown bool = os.Getuid() == 0

Functions

func Tar

func Tar(src, dst string, excl []string) error

Tar creates a tar archive from the source directory `src` and saves it to `dst`, excluding any paths specified in `excl`.

func Untar

func Untar(src io.Reader, dst string, excl []string) error

Untar extracts a tar archive from `src` to `dst`, excluding any paths specified in `excl`.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL