zip

package
v0.0.0-...-04cc398 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2014 License: LGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(reader *zip.Reader, targetRoot, sourceRoot string) error

Extract extracts files from the supplied zip reader, from the (internal, slash- separated) source path into the (external, OS-specific) target path. If the source path does not reference a directory, the referenced file will be written directly to the target path.

func ExtractAll

func ExtractAll(reader *zip.Reader, targetRoot string) error

ExtractAll extracts the supplied zip reader to the target path, overwriting existing files and directories only where necessary.

func Find

func Find(reader *zip.Reader, pattern string) ([]string, error)

Find returns the cleaned path of every file in the supplied zip reader whose base name matches the supplied pattern, which is interpreted as in path.Match.

func FindAll

func FindAll(reader *zip.Reader) ([]string, error)

FindAll returns the cleaned path of every file in the supplied zip reader.

Types

This section is empty.

Jump to

Keyboard shortcuts

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