untar

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsIllegalPath

func IsIllegalPath(filePath string, destination string) bool

IsIllegalPath is a zip-slip mitigation. symlinks can be used to get around this, see https://github.com/mholt/archiver/pull/65#issuecomment-395988244 fortunately we don't care about symlinks

func IsSkippable

func IsSkippable(path string, skipList []string) bool

IsSkippable checks if a given path is skippable based on matching the patterns in skipList

func Untar

func Untar(reader io.Reader, dir string, skipList []string) error

Untar reads from reader, checks if the archive is compressed, then uncompresses then untars into dir. skipList contains patterns to skip when untaring

Types

This section is empty.

Jump to

Keyboard shortcuts

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