fileutil

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: MIT Imports: 5 Imported by: 1

README

fileutil

Some tools for working with files

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TarExtract

func TarExtract(r io.Reader, targetDir string) error

TarExtract will extract the given input as tar data to the specified directory

This method will not check for anything nefarious. Only use for trusted archives.

func WriteFileReader

func WriteFileReader(name string, data io.Reader, perm os.FileMode) error

WriteFileReader is similar to os.WriteFile but using a Reader instead of a []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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