Skip to main content

data_dir

Function data_dir 

Source
pub fn data_dir(name: &str) -> Option<PathBuf>
Expand description

The OS’s per-app data directory for the game whose storage is called name: that folder in %APPDATA% on Windows, in ~/Library/Application Support on macOS, in $XDG_DATA_HOME (or ~/.local/share) elsewhere on Unix. None if the relevant environment variable isn’t set.