Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnsureDirectory ¶ added in v0.14.0
func EnsureDirectory(dir string) error
EnsureDirectory checks if a directory exists and creates it if it doesn't
func EnsureFile ¶ added in v0.14.0
func EnsureFile(file string) error
EnsureFile checks if a file exists and creates it if it doesn't
func Exists ¶
func Exists(path string) (bool, error)
Exists returns whether the given file or directory exists or not.
func SymlinkWithFallback ¶ added in v0.9.0
func SymlinkWithFallback(oldname, newname string) (err error)
SymlinkWithFallback attempts to symlink a file or directory, but falls back to a move operation in the event of the user not having the required privileges to create the symlink.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.