archive

package
v0.4.20 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(unpack Unpack, archive, dest string, options *Options) error

Unpack an archive in the real OS filesystem. The destination directory will be created fresh.

func Untar

func Untar(src afero.File, fs afero.Fs, options *Options) error

func UntarReader

func UntarReader(r io.Reader, compressed bool, fs afero.Fs, options *Options) error

func Unzip

func Unzip(src afero.File, fs afero.Fs, options *Options) error

Types

type Options

type Options struct {
	TruncateFileSize int64
	IgnoreSymLinks   bool
}

type Unpack

type Unpack func(src afero.File, fs afero.Fs, options *Options) error

Jump to

Keyboard shortcuts

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