fsutils

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chmod

func Chmod(path string, perm fs.FileMode, ignoreNotExist bool) error

func MatchFiles

func MatchFiles(globs ...string) ([]string, error)

MatchFiles matches local filesystem using globs, returns a list of matched file in matched order.

func TemporaryWritable

func TemporaryWritable(do func() error, files ...string) (err error)

func WriteReadOnly

func WriteReadOnly(path string, data []byte) (err error)

func WriteToFileOrStdout

func WriteToFileOrStdout(opts *cli.CmdOptions, file string, do func(w io.Writer) error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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