Documentation ¶
Index ¶
- func Abs(wd, path string) (string, error)
- func CP(wd string, paths ...string) (err error)
- func CommonFilepathPrefix(paths []string) string
- func CopyDirectory(scrDir, dest string) error
- func CopyFile(srcFile, dstFile string) error
- func CopyFilesByPath(prefix string, files []string, dest string) (err error)
- func CopySymLink(source, dest string) error
- func CreateDirIfNotExists(dir string, perm os.FileMode) error
- func DirExists(path string) bool
- func FileExists(path string) bool
- func FindExecutable(file string) error
- func IsDir(file string) bool
- func LookPath(file string, path string) (string, error)
- func PathExists(path string) bool
- func PathWithinDir(dir, path string) (err error)
- func ReplaceAll(filepath, old, new string) (err error)
- func ValidSymlinkExists(path string) (dest string, ok bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonFilepathPrefix ¶
func CopyDirectory ¶
copy directory will copy all of the contents of one directory into another directory
func CopyFilesByPath ¶
CopyFiles takes a list of absolute paths to files and copies them into another directory, maintaining structure. Importantly it doesn't copy all the files in these directories, just the specific named paths.
func CopySymLink ¶
func FileExists ¶
FileExists will only return true if the path is a file, not a directory
func FindExecutable ¶
func PathExists ¶
func PathWithinDir ¶
PathWithinDir checks if a path is within a given directory. It doesn't validate if the passed directory path is actually a directory. If the function returns a nil error the path is within the directory.
Dir and path must be absolute paths
func ReplaceAll ¶
func ValidSymlinkExists ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.