Skip to main content

data_dir

Function data_dir 

Source
pub fn data_dir() -> Option<PathBuf>
Expand description

The app’s data directory, for what it cannot recreate: databases, documents, downloads the user kept. Application Support on Apple platforms (inside the container when sandboxed), %LOCALAPPDATA% on Windows, $XDG_DATA_HOME on Linux, the app’s files directory on Android and HarmonyOS. DAY_DATA_DIR replaces it.