Documentation ¶
Index ¶
- func CreateAllDirectories(path string) error
- func CreateSingleDirectory(basePath, dirName, duplicateDirectoryNameFormat string) (string, error)
- func GetApplicationDirectories() (dataDir string, configDir string, cacheDir string, funcErr error)
- func GetCacheDirectory() (string, error)
- func GetConfigDirectory() (string, error)
- func GetDataDirectory() (string, error)
- func GetSubdirectoryPaths(path string) ([]string, error)
- type GetApplicationDirectoriesFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateAllDirectories ¶
createDir creates all the directories of a given path if they don't exist.
func CreateSingleDirectory ¶
CreateDirectory creates a directory and handles duplicates by appending a suffix.
func GetApplicationDirectories ¶
GetApplicationDirectories returns the application directories.
func GetCacheDirectory ¶
GetCacheDirectory retrieves the cache directory.
func GetConfigDirectory ¶
GetConfigDirectory retrieves the first available config directory.
func GetDataDirectory ¶
GetDataDirectory retrieves the first available data directory.
func GetSubdirectoryPaths ¶
Give a directory path and this will return a slice of directory names at that path.
Types ¶
Click to show internal directories.
Click to hide internal directories.