dataDir
dataDir():
Promise<string>
Defined in: path.ts:264
Returns the path to the user’s data directory.
- Linux: Resolves to
$XDG_DATA_HOMEor$HOME/.local/share. - macOS: Resolves to
$HOME/Library/Application Support. - Windows: Resolves to
{FOLDERID_RoamingAppData}.
Promise<string>
import { dataDir } from '@tauri-apps/api/path';const dataDirPath = await dataDir();1.0.0
© 2025 Tauri Contributors. CC-BY / MIT