templateDir
templateDir():
Promise<string>
Defined in: path.ts:560
Returns the path to the user’s template directory.
- Linux: Resolves to
xdg-user-dirs’XDG_TEMPLATES_DIR. - macOS: Not supported.
- Windows: Resolves to
{FOLDERID_Templates}.
Promise<string>
import { templateDir } from '@tauri-apps/api/path';const templateDirPath = await templateDir();1.0.0
© 2025 Tauri Contributors. CC-BY / MIT