Skip to main content

resolve_cache_dir

Function resolve_cache_dir 

Source
pub fn resolve_cache_dir() -> PathBuf
Expand description

Resolve the conventional Hugging Face Hub cache directory.

Environment variables are checked in this order: HF_HUB_CACHE, HUGGINGFACE_HUB_CACHE, HF_HOME, XDG_CACHE_HOME, HOME, and USERPROFILE. If none are set, the platform temporary directory is used.