Function tauri::api::path::data_dir

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

Returns the path to the user’s data directory.

§Platform-specific

  • Linux: Resolves to $XDG_DATA_HOME or $HOME/.local/share.
  • macOS: Resolves to $HOME/Library/Application Support.
  • Windows: Resolves to {FOLDERID_RoamingAppData}.