Documentation ¶
Index ¶
- Variables
- func ApplyDefaultXdgEnv()
- func AtomicWrite(bytes []byte, path string) error
- func Download(src, dest string) error
- func ExpandEnv(text string) string
- func FileExists(filename string) bool
- func GetHomeDir() (string, error)
- func GetKeyValueStorePath() (string, error)
- func GetRulesFilePath() string
- func MoveDirectory(source, dest string) error
- func MoveFile(sourcePath, destPath string) error
- func MovePath(source, dest string) error
- func OpenOrCreate(filepath string) (*os.File, error)
- func PathExists(path string) (bool, error)
- func XdgDefaults() map[string]string
Constants ¶
This section is empty.
Variables ¶
View Source
var AppDirs appDirs
Functions ¶
func ApplyDefaultXdgEnv ¶
func ApplyDefaultXdgEnv()
func AtomicWrite ¶ added in v0.6.0
func FileExists ¶
func GetHomeDir ¶
func GetKeyValueStorePath ¶ added in v0.6.0
func GetRulesFilePath ¶
func GetRulesFilePath() string
func MoveDirectory ¶ added in v0.5.0
func MovePath ¶ added in v0.5.0
Try to move file/directory with os.Rename and if that fails, do a copy + delete
func PathExists ¶ added in v0.5.0
func XdgDefaults ¶ added in v0.5.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.