Tauri publicDir
publicDir():
Promise
<string
>
返回用户的公共目录的路径。
特定平台
- Linux:解析为
xdg-user-dirs
XDG_PUBLICSHARE_DIR
- macOS:解析为
$HOME/Public
- windows:解析为
{FOLDERID_Public}
例
import { publicDir } from '@tauri-apps/api/path';
const publicDirPath = await publicDir();
Since: 1.0.0
Returns: Promise
<string
>