iroh_data_root

Function iroh_data_root 

Source
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.

PlatformValueExample
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}/irohC:\Users\Alice\AppData\Roaming\iroh