package traverse

import (
	
)

// XdgCacheHome returns the cache directory (fallback to UserCacheDir).
func ( Context) ( string,  error) {
	if  = .Getenv("XDG_CACHE_HOME");  == "" {
		,  = UserCacheDir()
	}
	 = filepath.ToSlash()
	return
}

// XdgConfigHome returns the home directory (fallback to UserConfigDir).
func ( Context) ( string,  error) {
	if  = .Getenv("XDG_CONFIG_HOME");  == "" {
		,  = UserConfigDir()
	}
	 = filepath.ToSlash()
	return
}