cache_dir

Function cache_dir 

Source
pub fn cache_dir() -> Result<PathBuf>
Expand description

Returns the cache directory for tl.

Resolution order:

  1. $XDG_CACHE_HOME/tl if XDG_CACHE_HOME is set
  2. ~/.cache/tl otherwise

ยงErrors

Returns an error if the home directory cannot be determined.