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