Documentation ¶
Index ¶
- func CleanDir(dir string) error
- func ConvertTilda(path string) (string, error)
- func DirExists(path string) (exists bool, empty bool, err error)
- func Download(url, destDir string, showProgress bool) (string, error)
- func FileExists(f string) (bool, error)
- func IsDir(path string) bool
- func IsFile(path string) bool
- func MakeDir(dir string) error
- func Ping(host string, seconds int) bool
- type DirState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanDir ¶
CleanDir removes all files from a directory or creates the directory if it is absent.
func ConvertTilda ¶
ConvertTilda expands paths with `~/` to an actual home directory.
func Download ¶ added in v0.3.0
Download copies remote file to local drive. It provides the name of downloaded file and error as output.
func FileExists ¶
FileExists checks if a file exists, and that it is a regular file.
Types ¶
type DirState ¶ added in v0.2.4
type DirState int
DirState represents the state of a directory.
func GetDirState ¶ added in v0.2.4
GetDirState returns the state of a directory.
Click to show internal directories.
Click to hide internal directories.