Documentation
¶
Index ¶
- func Abs(path string) string
- func CreateTmpCopy(src string) (string, func(), error)
- func DirExists(path string) bool
- func FindInPathParents(pathToFind string, startPath string, endPath string, ...) string
- func PathExists(path string) bool
- func RecursiveChmod(root string, mode fs.FileMode) error
- func ResolveHomeRelPath(path string) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateTmpCopy ¶
CreateTmpCopy creates a temporary copy of the given file. It returns the file path, a clean up function, and a potential error.
func FindInPathParents ¶
func FindInPathParents( pathToFind string, startPath string, endPath string, testFunc func(string) bool) string
Look for a relative path, ascending through parent directories.
Args:
pathToFind: The relative path to look for. startPath: The path to start the search from. If |startPath| is a directory, it will be included in the directories that are searched. endPath: The path to stop searching. testFunc: The function to use to verify the relative path.
func RecursiveChmod ¶
RecursiveChmod changes the mode of each file and directory rooted at root, including root.
func ResolveHomeRelPath ¶
ResolveHomeRelPath resolves any references to the invoker's home directory in the given path.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.