iroh_cache_root

Function iroh_cache_root 

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

Returns the path to the user’s iroh cache directory.

If the IROH_CACHE_DIR environment variable is set it will be used unconditionally. Otherwise the returned value depends on the operating system according to the following table.

PlatformValueExample
Linux$XDG_CACHE_HOME/iroh or $HOME/.cache/iroh/home/.cache/iroh
macOS$HOME/Library/Caches/iroh/Users/Alice/Library/Caches/iroh
Windows{FOLDERID_LocalAppData}/irohC:\Users\Alice\AppData\Roaming\iroh