Function tauri_sys::path::template_dir

source ·
pub async fn template_dir() -> Result<PathBuf, Error>
Expand description

Returns the path to the user’s template directory.

§Platform-specific
  • Linux: Resolves to xdg-user-dirsXDG_TEMPLATES_DIR.
  • macOS: Not supported.
  • Windows: Resolves to {FOLDERID_Templates}.

§Example

use tauri_sys::path::template_dir;

let template_dir_path = template_dir().await?;