package
17.12.1-ce-rc2+incompatible
Repository: https://github.com/vvoland/cli.git
Documentation: pkg.go.dev
# Functions
CopyFile copies from src to dst until either EOF is reached on src or an error occurs.
CreateIfNotExists creates a file or a directory only if it does not already exist.
GetTotalUsedFds Returns the number of used File Descriptors by reading it via /proc filesystem.
Matches returns true if file matches any of the patterns and isn't excluded by any of the subsequent patterns.
NewPatternMatcher creates a new matcher object for specific patterns that can be used later to match against patterns against paths.
ReadSymlinkedDirectory returns the target directory of a symlink.
# Structs
Pattern defines a single regexp used used to filter file paths.
PatternMatcher allows checking paths agaist a list of patterns.