Skip to main content

config_path

Function config_path 

Source
pub fn config_path() -> Option<PathBuf>
Expand description

Returns the path to the user config file.

Uses dirs::config_dir() for a platform-appropriate location:

  • Linux: ~/.config/skillfile/config.toml
  • macOS: ~/Library/Application Support/skillfile/config.toml
  • Windows: {FOLDERID_RoamingAppData}/skillfile/config.toml

Returns None if the platform has no config directory.