Skip to main content

settings_file

Function settings_file 

Source
pub fn settings_file(dir: &Path) -> Result<PathBuf, SettingsError>
Expand description

The settings file of folder dir: settings.toml when it holds one, else settings.json, which a first write creates. A folder that holds both is a SettingsError::Conflict.