pub async fn local_data_dir() -> Result<PathBuf, Error>
Expand description
Returns the path to the user’s local 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_LocalAppData}
.
§Example
use tauri_sys::path::local_data_dir;
let local_data_dir_path = local_data_dir().await?;