Returns the path to the user's download directory.
xdg-user-dirs
XDG_DOWNLOAD_DIR
$HOME/Downloads
{FOLDERID_Downloads}
import { downloadDir } from '@tauri-apps/api/path';const downloadDirPath = await downloadDir(); Copy
import { downloadDir } from '@tauri-apps/api/path';const downloadDirPath = await downloadDir();
1.0.0
Returns the path to the user's download directory.
Platform-specific
xdg-user-dirs
'XDG_DOWNLOAD_DIR
.$HOME/Downloads
.{FOLDERID_Downloads}
.