zip

package
v1.4.8 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrOpeningReader error when zip.OpenReader fails
	ErrOpeningReader = errors.New("can't open reader")
	// ErrIllegalFilePath error when filepath has invalid characters
	ErrIllegalFilePath = errors.New("illegal file path")
	// ErrCreateOutputDir error when creating output directory fails
	ErrCreateOutputDir = errors.New("unable to create output dir")
	// ErrOpeningOutputFile error when creating output file fails
	ErrOpeningOutputFile = errors.New("unable to open output file")
	// ErrOpeningFileInZip error when opening file in zip fails
	ErrOpeningFileInZip = errors.New("unable to open file for read")
	// ErrCopyingFile error when a file copy fails
	ErrCopyingFile = errors.New("unable to copy file")
)

Functions

func Extract

func Extract(src string, dest string) ([]string, error)

Extract will unzip src into dest folder, creating dest folder if it does not exist

Types

This section is empty.

Jump to

Keyboard shortcuts

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