Tauri templateDir
2024-02-05 16:06 更新
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>
以上内容是否对您有帮助:

免费 AI IDE


更多建议: