pub fn iroh_data_root() -> Result<PathBuf>Expand description
Returns the path to the user’s iroh data directory.
If the IROH_DATA_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_DATA_HOME/iroh or $HOME/.local/share/iroh | /home/alice/.local/share/iroh |
| macOS | $HOME/Library/Application Support/iroh | /Users/Alice/Library/Application Support/iroh |
| Windows | {FOLDERID_RoamingAppData}/iroh | C:\Users\Alice\AppData\Roaming\iroh |