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.
| Platform | Value | Example |
|---|---|---|
| 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}/iroh | C:\Users\Alice\AppData\Roaming\iroh |