Documentation
¶
Index ¶
- func DirExists(path string) bool
- func FileExists(path string) bool
- func GetDirInfo(path string) (fs.FileInfo, error)
- func GetFileInfo(path string) (fs.FileInfo, error)
- func GetSearchPaths() []string
- func Glob(path string, pattern string, ignoreCase bool) (matches []string, err error)
- func GlobDirs(path string, pattern string, ignoreCase bool) (matches []string, err error)
- func GlobFiles(path string, pattern string, ignoreCase bool) (matches []string, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DirExists ¶
DirExists returns true if the directory path was found and is in fact a directory; otherwise, it returns false
func FileExists ¶
FileExists returns true if the file path was found and is in fact a file; otherwise, it returns false
func GetDirInfo ¶
GetDirInfo returns an fs.FileInfo representing the directory at path. If the file was not found, it will return a custom error. If there is another error, it will be of type *fs.PathError
func GetFileInfo ¶
GetFileInfo returns an fs.FileInfo representing the file at path. If the file was not found, it will return a custom error. If there is another error, it will be of type *fs.PathError
func GetSearchPaths ¶
func GetSearchPaths() []string
GetSearchPaths returns a distinct list of paths defined in the PATH environment value. Also includes the current working directory in the list.
func Glob ¶
Glob returns the names of all files and directories matching pattern or nil if there are no matches.
It uses os.ReadDir and thus may return any error returned from that call.
Types ¶
This section is empty.