Documentation
¶
Index ¶
- func Exists(path string) (bool, error)
- func ExistsDir(path string) (bool, error)
- func ExistsFile(path string) (bool, error)
- func ExistsSymlink(path string) (bool, error)
- func ExpandAll(path string) string
- func ExpandUser(path string) string
- func GetAllConfigDirs() []string
- func GetAllDataDirs() []string
- func GetAppCacheDir() string
- func GetAppConfigDir() string
- func GetAppDataDir() string
- func GetAppIconCacheDir() string
- func GetCacheHome() string
- func GetConfigDirs() []string
- func GetConfigHome() string
- func GetDataDirs() []string
- func GetDataHome() string
- func GetEnv(key string) (string, bool)
- func GetEnvDef(key string, defValue string) string
- func GetSysTmp() string
- func GetUserHome() string
- func New() error
- func Walk(dirPath string, logger *zap.Logger, fn WalkFunc)
- type PathMode
- type WalkFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExistsFile ¶
func ExistsSymlink ¶
func ExpandUser ¶
func GetAppCacheDir ¶
func GetAppCacheDir() string
func GetAppConfigDir ¶
func GetAppConfigDir() string
func GetAppDataDir ¶
func GetAppDataDir() string
func GetAppIconCacheDir ¶
func GetAppIconCacheDir() string
func GetCacheHome ¶
func GetCacheHome() string
func GetConfigDirs ¶
func GetConfigDirs() []string
func GetConfigHome ¶
func GetConfigHome() string
func GetDataDirs ¶
func GetDataDirs() []string
func GetDataHome ¶
func GetDataHome() string
func GetUserHome ¶
func GetUserHome() string
Types ¶
type PathMode ¶
type PathMode uint8
const ( ModeUnknown PathMode = 0 ModeNamedPipe PathMode = 1 << 0 ModeCharDevice PathMode = 1 << 1 // character-oriented device file ModeBlockDevice PathMode = 1 << 2 // block-oriented device file ModeDir PathMode = 1 << 3 ModeRegFile PathMode = 1 << 4 ModeSymlink PathMode = 1 << 5 ModeSocket PathMode = 1 << 6 )
Click to show internal directories.
Click to hide internal directories.