pub fn data_dir(app_id: &str) -> Result<PathBuf>Expand description
The directory for app_id, created if it does not exist.
| Platform | Location |
|---|---|
| macOS | ~/Library/Application Support/<app_id> |
| Windows | %APPDATA%\<app_id> |
| Linux | $XDG_DATA_HOME/<app_id>, else ~/.local/share/<app_id> |