Returns the path to the user's local data directory.
$XDG_DATA_HOME
$HOME/.local/share
$HOME/Library/Application Support
{FOLDERID_LocalAppData}
import { localDataDir } from '@tauri-apps/api/path';const localDataDirPath = await localDataDir(); Copy
import { localDataDir } from '@tauri-apps/api/path';const localDataDirPath = await localDataDir();
1.0.0
Returns the path to the user's local data directory.
Platform-specific
$XDG_DATA_HOME
or$HOME/.local/share
.$HOME/Library/Application Support
.{FOLDERID_LocalAppData}
.