tauri_sys::path

Function app_cache_dir

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

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

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

§Example

use tauri_sys::path::app_cache_dir;

let app_cache_dir_path = app_cache_dir().await?;