tarextract

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2026 License: GPL-3.0, LGPL-3.0 Imports: 7 Imported by: 0

Documentation

Overview

Package tarextract extracts a PAX tar (as produced by tarexport) into a directory, restoring permissions, ownership (when running as root), extended attributes (best-effort), nanosecond mtimes, symlinks, fifos, and device nodes. Directory permissions and mtimes are applied after all members are written, so a read-only or past-dated directory does not block writing its children — and creating children does not disturb a restored directory's mtime.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

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

Extract reads a tar from r and materializes it under destDir, which is created if necessary. destDir itself keeps default attributes (the export root's own metadata is not part of the archive).

Types

This section is empty.

Jump to

Keyboard shortcuts

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