filesystem

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DisableCache bool
)

Functions

func Dir

func Dir() (string, error)

func Expand

func Expand(path string) (string, error)

func FilePathWalkDir

func FilePathWalkDir(root string) ([]string, error)

func IsEmpty

func IsEmpty(path string) (bool, error)

func MkDir

func MkDir(path string, permission os.FileMode) error

func Reset

func Reset()

Types

type FileHash added in v0.2.2

type FileHash struct {
	Nodes []FileHashNode
}

func (*FileHash) Hash added in v0.2.2

func (fh *FileHash) Hash(dir string)

type FileHashNode added in v0.2.2

type FileHashNode struct {
	Path string
	Hash []byte
}

type LazyPath

type LazyPath struct {
	EnvironmentVariable string
	DefaultFn           func() string
}

func (LazyPath) Path

func (lazypath LazyPath) Path(elem ...string) string

Jump to

Keyboard shortcuts

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