Function tauri_sys::path::app_data_dir

source ·
pub async fn app_data_dir() -> Result<PathBuf, Error>
Expand description

Returns the path to the suggested directory for your app’s data files.

Resolves to ${dataDir}/${bundleIdentifier}, where bundleIdentifier is the value tauri.bundle.identifier is configured in tauri.conf.json.

§Example

use tauri_sys::path::app_data_dir;

let app_data_dir_path = app_data_dir().await?;