documentDir
documentDir():
Promise<string>
Defined in: path.ts:308
Returns the path to the user’s document directory.
Promise<string>
import { documentDir } from '@tauri-apps/api/path';const documentDirPath = await documentDir();- Linux: Resolves to
xdg-user-dirs’XDG_DOCUMENTS_DIR. - macOS: Resolves to
$HOME/Documents. - Windows: Resolves to
{FOLDERID_Documents}.
1.0.0
© 2025 Tauri Contributors. CC-BY / MIT