zippy

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package zippy is a basic API to zip and unzip files that uses archive/zip Name inspired by: https://en.wikipedia.org/wiki/Zippy_(Rainbow)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Archive

func Archive(sourceDirectory, destinationZip string, compress bool) error

Types

type ZipReader

type ZipReader struct {
	// contains filtered or unexported fields
}

func Open

func Open(path string) (ZipReader, error)

func (ZipReader) Close

func (z ZipReader) Close()

func (ZipReader) ExtractDirectory

func (z ZipReader) ExtractDirectory(zipDirectory, targetDirectory string) error

ExtractDirectory extracts a path within the zip file to a target directory

func (ZipReader) ExtractFile

func (z ZipReader) ExtractFile(filePath, targetDirectory string) error

func (ZipReader) Find

func (z ZipReader) Find(path string) *zip.File

func (ZipReader) List

func (z ZipReader) List() (result []*zip.File)

Jump to

Keyboard shortcuts

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