crush

package
v1.69.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 53

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTar added in v1.14.0

func CreateTar(destination io.Writer, source string) error

CreateTar writes a TAR to the destination io.Writer containing the directories and files in the source folder.

func CreateTarGz added in v1.14.0

func CreateTarGz(destination io.Writer, source string) error

CreateTarGz writes a GZIP'd TAR to the destination io.Writer containing the directories and files in the source folder.

func Extract added in v1.59.0

func Extract(source io.Reader, destination string, stripComponents int) error

Extract decompresses and extract source files to a destination directory or path. For archives, an arbitrary number of top-level directory components can be stripped from each path.

func ExtractTar deprecated added in v1.14.0

func ExtractTar(source io.Reader, destination string, stripComponents int) error

ExtractTar extracts source TAR file to a destination directory. An arbitrary number of top-level directory components can be stripped from each path.

Deprecated: use Extract instead

func ExtractTarBz2 deprecated added in v1.24.0

func ExtractTarBz2(source io.Reader, destination string, stripComponents int) error

ExtractTarBz2 extracts source BZIP2'd TAR file to a destination directory. An arbitrary number of top-level directory components can be stripped from each path.

Deprecated: use Extract instead

func ExtractTarGz deprecated added in v1.14.0

func ExtractTarGz(source io.Reader, destination string, stripComponents int) error

ExtractTarGz extracts source GZIP'd TAR file to a destination directory. An arbitrary number of top-level directory components can be stripped from each path.

Deprecated: use Extract instead

func ExtractTarXz deprecated added in v1.14.0

func ExtractTarXz(source io.Reader, destination string, stripComponents int) error

ExtractTarXz extracts source XZ'd TAR file to a destination directory. An arbitrary number of top-level directory components can be stripped from each path.

Deprecated: use Extract instead

func ExtractZip deprecated added in v1.14.0

func ExtractZip(source io.Reader, destination string, stripComponents int) error

ExtractZip extracts source ZIP file to a destination directory. An arbitrary number of top-level directory components can be stripped from each path.

Deprecated: use Extract instead

Types

This section is empty.

Jump to

Keyboard shortcuts

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