Documentation ¶
Index ¶
- func ClearDir(dir string) error
- func CopyAll(src, dst string) error
- func CreateDevboxTempDir() (string, error)
- func EnsureDirExists(path string, perm fs.FileMode, chmod bool) error
- func Exists(path string) bool
- func FileContains(path, substring string) (bool, error)
- func IsDir(path string) bool
- func IsFile(path string) bool
- func Untar(archive io.Reader, destPath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDevboxTempDir ¶
func FileContains ¶
FileContains checks if a given file at 'path' contains the 'substring'
func IsDir ¶
IsDir returns true if the path exists *and* it is pointing to a directory.
This function will traverse symbolic links to query information about the destination file.
This is a convenience function that coerces errors to false. If it cannot read the path for any reason (including a permission error, or a broken symbolic link) it returns false.
func IsFile ¶
IsFile returns true if the path exists *and* it is pointing to a regular file.
This function will traverse symbolic links to query information about the destination file.
This is a convenience function that coerces errors to false. If it cannot read the path for any reason (including a permission error, or a broken symbolic link) it returns false.
Types ¶
This section is empty.