Skip to main content

host_cache_directory

Function host_cache_directory 

Source
pub fn host_cache_directory() -> Option<PathBuf>
Expand description

The host’s cache directory, as the Node and Python clients name it, or None without a home.

That is ALPHA2_HOST_CACHE_DIR (relative to the working directory), else alpha2 under $XDG_CACHE_HOME (when absolute) or ~/.cache on Linux, ~/Library/Caches on macOS, and %LOCALAPPDATA% on Windows.