Returns the path to the user's template directory.
xdg-user-dirs
XDG_TEMPLATES_DIR
{FOLDERID_Templates}
import { templateDir } from '@tauri-apps/api/path';const templateDirPath = await templateDir(); Copy
import { templateDir } from '@tauri-apps/api/path';const templateDirPath = await templateDir();
1.0.0
Returns the path to the user's template directory.
Platform-specific
xdg-user-dirs
'XDG_TEMPLATES_DIR
.{FOLDERID_Templates}
.