archive

package
v0.0.0-...-979ab6c Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrFailedToCompress = errors.New("filecrypt: failed to compress")

Functions

func PackFiles

func PackFiles(paths []string) ([]byte, error)

PackFiles walks the specified paths and archives them; the resulting archive is gzipped with the maximum compression.

func UnpackFiles

func UnpackFiles(in []byte, top string, unpack bool) error

UnpackFiles decompresses and unarchives the gzipped tarball passed in as data and uncompresses it to the top-level directory given. If unpack is false, only file names will be listed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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