Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultVegaDir ¶
func DefaultVegaDir() string
DefaultVegaDir returns the location to vega config files and data files: binary is in /usr/bin/ -> look for /etc/vega/config.toml binary is in /usr/local/vega/bin/ -> look for /usr/local/vega/etc/config.toml binary is in /usr/local/bin/ -> look for /usr/local/etc/vega/config.toml otherwise, look for $HOME/.vega/config.toml
func EnsureDir ¶
EnsureDir will make sure a directory exists or is created at a given filesystem path.
func FileExists ¶
FileExists similar to PathExists, but ensures the path is to a file, not a directory
func PathExists ¶
PathExists returns whether a link exists at a given filesystem path.
Types ¶
type PathNotFound ¶
type PathNotFound struct {
// contains filtered or unexported fields
}
PathNotFound represent an error when a fd cannot be found on the user filesystem
func (*PathNotFound) Error ¶
func (err *PathNotFound) Error() string
Error return an human readable formating of the error