appDataDir
Module @netwiv/api/path · Kind Function
import { appDataDir } from '@netwiv/api/path';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.
Signature
Section titled “Signature”function appDataDir(): Promise<string>Example
Section titled “Example”import { appDataDir } from '@netwiv/api/path';const appDataDirPath = await appDataDir();Upstream since 1.2.0
Descriptions come from the pinned @tauri-apps/api@2.11.1 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.