Tauri templateDir
templateDir():Promise<string>
返回用户模板目录的路径。
特定于平台
- Linux操作系统:解析为
xdg-user-dirsXDG_TEMPLATES_DIR - macOS:不支持。
- windows:解析为
{FOLDERID_Templates}
例
import { templateDir } from '@tauri-apps/api/path';
const templateDirPath = await templateDir();Since: 1.0.0
Returns: Promise<string>