package
0.0.0-20240304074047-90889cfdf9dd
Repository: https://github.com/mokiat/gocrane.git
Documentation: pkg.go.dev
# Functions
CutPath tries to extract the first segment from the path.
Glob prepends the glob prefix to the specified pattern.
IsGlob checks whether the specified pattern is a candidate to be a glob.
NewFilterTree creates a new empty FilterTree instance.
Pattern returns the glob pattern from the specified glob string.
ToAbsolutePath converts the specified path to absolute.
Traverse attempts to simplify file traversal.
# Variables
ErrSkip can be returned to indicate that the current file or folder should be skipped from any further traversal.
# Structs
FilterTree is a data structure that can be used to mark specific filesystem paths as accepted and others as rejected.
# Type aliases
AbsolutePath is a string that holds an absolute path.
TraverseFunc is called for each visited folder.