Function nu_data::config::loadable_cfg_exists_in_dir
source · [−]pub fn loadable_cfg_exists_in_dir(
cfg_dir: PathBuf
) -> Result<Option<PathBuf>, ShellError>
Expand description
Checks whether a local_cfg exists in cfg_dir and returns: Ok(Some(cfg_path)) if cfg exists and is good to load Ok(None) if no cfg exists Err(error) if cfg exits, but is not good to load