astiarchive

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2019 License: MIT Imports: 11 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultFileMode os.FileMode = 0775

DefaultFileMode represents the default file mode

Functions

func Untar

func Untar(ctx context.Context, src, dst string) (err error)

Untar untars a src into a dst

func Unzip

func Unzip(ctx context.Context, src, dst string) (err error)

Unzip unzips a src into a dst Possible src formats are /path/to/zip.zip or /path/to/zip.zip/internal/path if you only want to unzip files in /internal/path in the .zip archive

func Zip

func Zip(ctx context.Context, src, dst, dstRoot string) (err error)

Zip zips a src into a dst dstRoot can be used to create root directories so that the content is zipped in /path/to/zip.zip/root/path

Types

This section is empty.

Jump to

Keyboard shortcuts

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