pub fn template_dir() -> Option<PathBuf>Expand description
Returns the path to the user’s template directory.
The returned value depends on the operating system and is either a Some, containing a value from the following table, or a None.
| Platform | Value | Example |
|---|---|---|
| Linux | XDG_TEMPLATES_DIR | /home/alice/Templates |
| macOS | – | – |
| Windows | {FOLDERID_Templates} | C:\Users\Alice\AppData\Roaming\Microsoft\Windows\Templates |