Tauri pictureDir
pictureDir():Promise
<string
>
返回用户图片目录的路径。
特定于平台
- Linux:解析为
xdg-user-dirs
XDG_PICTURES_DIR
- macOS:解析为$HOME/Pictures
- windows:解析为{FOLDERID_Pictures}
例
import { pictureDir } from '@tauri-apps/api/path';
const pictureDirPath = await pictureDir();
Since: 1.0.0
Returns: Promise
<string
>