Tauri Core API - v2.6.0
    Preparing search index...

    Function templateDir

    • 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}.

      Returns Promise<string>

      import { templateDir } from '@tauri-apps/api/path';
      const templateDirPath = await templateDir();

      1.0.0