Documentation ¶
Overview ¶
Package paths provides convenience functions related to the file system.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DoesPostbootExist ¶ added in v0.0.10
DoesPostbootExist returns true if the postboot file exists, otherwise false.
func EnsureDirExists ¶
func EnsureDirExists(path string)
EnsureDirExists creates the given directory if it does not exists.
func GetCmdPath ¶ added in v0.0.3
GetCmdPath returns the given executable from the PATH, otherwise an error.
func GetCmdPathOrExit ¶ added in v0.0.5
GetCmdPathOrExit returns the given executable from the PATH.
func GetDataFilePath ¶
GetDataFilePath returns a file from the XDG data directory.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.