pather

package
v1.0.13 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirEnsure

func DirEnsure(path string) error

func DirEnsureWithConfig

func DirEnsureWithConfig(path string, config DirConfig) error

func IsDir

func IsDir(path string) bool

func IsDirErr

func IsDirErr(path string) (bool, error)

func IsFile

func IsFile(path string) bool

func IsFileErr

func IsFileErr(path string) (bool, error)

func NormalizeExt

func NormalizeExt(ext string) string

func PathExists

func PathExists(path string) bool

func PathExistsErr

func PathExistsErr(path string) (bool, error)

func PathExistsTry

func PathExistsTry(path string) trier.Try[bool]

func SwapExt

func SwapExt(path, oldExt, newExt string) string

func WalkDirPaths

func WalkDirPaths(root string, filter func(string) bool, processFn func(string) error) error

func WalkFilePaths

func WalkFilePaths(root string, filterFn func(string) bool, processFn func(string) error) error

Types

type DirConfig

type DirConfig 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