archive

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create added in v0.4.0

func Create(filename string, src string, options *TarOptions) (warnings []string, err error)

Create an archive file containing the contents of directory src

func Extract added in v0.4.0

func Extract(reader io.Reader, options *TarOptions) (manifest []string, warnings []string, err error)

Extract all files from an archive to current directory

func NewBadPath added in v0.9.0

func NewBadPath(allowDoubleDot bool, allowAbsolutePaths bool) *badpath

Types

type FileType added in v0.7.0

type FileType int
const (
	TypeRegular FileType = iota
	TypeLink
	TypeDir
	TypeOther
)

type TarOptions added in v0.10.0

type TarOptions struct {
	AllowAbsolutePaths   bool
	AllowDoubleDotPaths  bool
	AllowLinksOutsideCwd bool
}

Jump to

Keyboard shortcuts

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