publicDir
publicDir():
Promise<string>
Defined in: path.ts:462
Returns the path to the user’s public directory.
- Linux: Resolves to
xdg-user-dirs’XDG_PUBLICSHARE_DIR. - macOS: Resolves to
$HOME/Public. - Windows: Resolves to
{FOLDERID_Public}.
Promise<string>
import { publicDir } from '@tauri-apps/api/path';const publicDirPath = await publicDir();1.0.0
© 2025 Tauri Contributors. CC-BY / MIT