txtarutil

package module
v0.0.0-...-8715893 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package txtarutil provides utility functions for the txtar trivial text-based file archive format.

The functions provided by the package allow easy reading and writing of txtar archive contents from/to disk.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromFS

func FromFS(root fs.FS) (*txtar.Archive, error)

FromFS walks the filesystem tree at root, adding any files and their contents into a txtar.Archive.

func ToDir deprecated

func ToDir(root string, archive *txtar.Archive) error

ToDir writes the files specified in the archive to directory at root path. Directories are created if needed. Existing files may get overwritten. Checks file names using filepath.IsLocal, returning an error if not passed.

Deprecated: Go1.23 adds os.CopyFS, usable with txtar.FS to similar effect.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳