crush

package
v2.0.0-alpha.3 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: Apache-2.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTar

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

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

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

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

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

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

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

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