gzip

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultMaxDecompressSize = 100 * 1024 * 1024 * 1024 // 100 GB

Variables

This section is empty.

Functions

func Decompress

func Decompress(tarGzPath, destDir string) error

Decompress takes the path to a .tar.gz file and decompresses it into the specified directory.

func DecompressInPlace

func DecompressInPlace(tarGzPath string) (string, error)

DecompressInPlace takes the path to a .tar.gz file and decompresses it into the same directory.

func DecompressWithMaxBytes

func DecompressWithMaxBytes(tarGzPath, destDir string, maxDecompressSize int64) error

DecompressWithMaxBytes takes the path to a .tar.gz file and decompresses it into the specified directory. It enforces a maximum decompressed file size (per file) to prevent decompression bombs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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