tar

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2020 License: Unlicense Imports: 5 Imported by: 0

Documentation

Overview

Package tar reads and writes gzipped tar files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(w io.Writer, root string, files []string) error

Create writes the files contained in root as a gzipped tar archive to w. The file strings in files can contain directory paths (starting from root).

func CreateArchive

func CreateArchive(filename, root string, files []string) error

CreateArchive writes the files contained in root as a gzipped tar archive to filename. The file strings in files can contain directory paths (starting from root).

func Extract

func Extract(root string, r io.Reader) error

Extract the files contained in the gzipped archive r to the directory hierarchy rooted at root.

func ExtractArchive

func ExtractArchive(root, filename string) error

ExtractArchive extracts the files contained in the gzipped archive filename to the directory hierarchy rooted at root.

Types

This section is empty.

Jump to

Keyboard shortcuts

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