downloadDir
downloadDir():
Promise<string>
Defined in: path.ts:330
Returns the path to the user’s download directory.
- Linux: Resolves to
xdg-user-dirs’XDG_DOWNLOAD_DIR. - macOS: Resolves to
$HOME/Downloads. - Windows: Resolves to
{FOLDERID_Downloads}.
Promise<string>
import { downloadDir } from '@tauri-apps/api/path';const downloadDirPath = await downloadDir();1.0.0
© 2025 Tauri Contributors. CC-BY / MIT