Returns the path to the suggested directory for your app's data files. Resolves to ${dataDir}/${bundleIdentifier}, where bundleIdentifier is the identifier value configured in tauri.conf.json.
${dataDir}/${bundleIdentifier}
bundleIdentifier
identifier
tauri.conf.json
import { appDataDir } from '@tauri-apps/api/path';const appDataDirPath = await appDataDir(); Copy
import { appDataDir } from '@tauri-apps/api/path';const appDataDirPath = await appDataDir();
1.2.0
Returns the path to the suggested directory for your app's data files. Resolves to
${dataDir}/${bundleIdentifier}
, wherebundleIdentifier
is theidentifier
value configured intauri.conf.json
.