files

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src string, dst string) error

func Exists

func Exists(path string) bool

func GetBaseName

func GetBaseName(filename string) string

func GzipFile

func GzipFile(path string) ([]byte, error)

GzipFile takes the path to a file and returns a Gzip comppressed byte slice

func SafeRead

func SafeRead(path string) string

SafeRead reads a path and returns the text contents or nil

func Unarchive

func Unarchive(src, dest string) error

func UnarchiveExecutables

func UnarchiveExecutables(src, dest string) error

func Ungzip

func Ungzip(source, target string) error

func Untar

func Untar(tarball, target string) error

func UntarWithFilter

func UntarWithFilter(tarball, target string, filter FileFilter) error

func Unzip

func Unzip(src, dest string) error

Types

type FileFilter

type FileFilter func(header os.FileInfo) string

Jump to

Keyboard shortcuts

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