Returns the path to the user's public directory.
xdg-user-dirs
XDG_PUBLICSHARE_DIR
$HOME/Public
{FOLDERID_Public}
import { publicDir } from '@tauri-apps/api/path';const publicDirPath = await publicDir(); Copy
import { publicDir } from '@tauri-apps/api/path';const publicDirPath = await publicDir();
1.0.0
Returns the path to the user's public directory.
Platform-specific
xdg-user-dirs
'XDG_PUBLICSHARE_DIR
.$HOME/Public
.{FOLDERID_Public}
.