Returns the path to the user's document directory.
import { documentDir } from '@tauri-apps/api/path';const documentDirPath = await documentDir(); Copy
import { documentDir } from '@tauri-apps/api/path';const documentDirPath = await documentDir();
xdg-user-dirs
XDG_DOCUMENTS_DIR
$HOME/Documents
{FOLDERID_Documents}
1.0.0
Returns the path to the user's document directory.