Skip to main content

config_dir_with

Function config_dir_with 

Source
pub fn config_dir_with(
    app: &str,
    env: impl Fn(&str) -> Option<String>,
) -> Option<PathBuf>
Expand description

The application’s configuration folder, where its settings are kept (AppBuilder::persist_in_config): ~/.config/<app>, ~/Library/Application Support/<app>, %APPDATA%\<app>. The application’s configuration folder, from the environment env gives (None: the variables it needs are missing, or on the web).