pather

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 5 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotDir  = errorer.Errorf("not a directory")
	ErrNotDirv = errorer.Wrapf(ErrNotDir)
)
View Source
var (
	ErrNotFile  = errorer.Errorf("not a file")
	ErrNotFilev = errorer.Wrapf(ErrNotDir)
)
View Source
var Dirs = dirs{
	// contains filtered or unexported fields
}
View Source
var Files = files{
	// contains filtered or unexported fields
}
View Source
var Paths = paths{}
View Source
var Walks = walks{}

Functions

func Join

func Join[T ~string](elems ...T) string

func WalkPaths

func WalkPaths(root string, filterFn func(string, fs.FileInfo) bool, processFn func(string, fs.FileInfo) error) error

Types

type DirConfig

type DirConfig struct {
	Perm  os.FileMode
	Owner string
	Group string
}

type FileConfig added in v1.0.29

type FileConfig struct {
	Perm  os.FileMode
	Owner string
	Group string
}

Jump to

Keyboard shortcuts

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