zip

package
v1.2.9 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package zip provides create and extract implementations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(zipfile, glob string) (err error)

Create a new zipfile at zipfile from the given srcPath directory Handles file globbing in the source path.

func ExtractAll

func ExtractAll(zipfile, dest string) (err error)

ExtractAll files into given destination directory

func TrimPrefix

func TrimPrefix(zipfile string) (err error)

TrimPrefix simple drops the bytes up to the begining of the zipfile. Many custom zip files like the chromium crx extension file have had additional data prefixed to them that needs to be stripped off before the zip can be processed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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