decompress

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package decompress implements routines for unzipping and "untarring".

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Untar

func Untar(reader io.Reader, targetDir string) error

Untar a reader to a target directory.

func UntarFile

func UntarFile(filePath, targetDir string) error

Untar a file to a target directory.

func Unzip

func Unzip(filePath, targetDir string) (err error)

Unzip a file to a target directory.

Types

type ErrZipInvalidFilePath

type ErrZipInvalidFilePath struct {
	FilePath string
}

func (ErrZipInvalidFilePath) Error

func (e ErrZipInvalidFilePath) Error() string

Jump to

Keyboard shortcuts

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