Skip to main content

global_config_path

Function global_config_path 

Source
pub fn global_config_path(name: &str) -> Result<Utf8PathBuf, CoreError>
Expand description

Resolve name inside the platform configuration directory for cook, e.g. ~/.config/cook/aisle.conf on Linux.

The path is returned whether or not anything exists there.

ยงErrors

CoreError::Config if there is no home directory to resolve against, or if the platform configuration directory is not valid UTF-8. Both carry no path, because the failure is that no path could be built.