archive

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractTarGz

func ExtractTarGz(gzFilePath, dest string) error

func ExtractTarGzStream

func ExtractTarGzStream(reader io.Reader, dest, pathToStrip string) error

func ExtractTarStream

func ExtractTarStream(reader io.Reader, dest, pathToStrip string) error

func SanitizeArchivePath

func SanitizeArchivePath(destination, header string) (v string, err error)

Sanitize archive file pathing from "G305: Zip Slip vulnerability"

func TarDDC

func TarDDC(srcDir, dest, baseDDC string) error

func TarGzDir

func TarGzDir(srcDir, dest string) error

func TarGzDirFiltered

func TarGzDirFiltered(srcDir, dest string, filterList func(string) bool) error

func TarGzDirFilteredStream

func TarGzDirFilteredStream(srcDir string, w io.Writer, filterList func(string) bool) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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