tar

package
v0.0.0-...-acf1bf1 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddFS

func AddFS(tw *tar.Writer, fsys fs.FS) error

addFS adds the files from fs.FS to the archive. It walks the directory tree starting at the root of the filesystem adding each file to the tar archive while maintaining the directory structure.

NOTE: this function is copied from the Go standard library's tar package, and modified to add the header sanitization logic to avoid leaking local file system information and ensure reproducible output.

func Directory

func Directory(w io.Writer, root fs.FS) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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