pub fn find_root_config_file_path(
    current_dir: impl AsRef<Path>,
    file_name: &str
) -> PaceResult<PathBuf>
Expand description

Find a config file in the current directory and upwards in the directory hierarchy and return the path

§Arguments

  • file_name - The name of the file to search for

§Errors

PaceErrorKind::ConfigFileNotFound - If the current directory value is invalid std::io::Error - If there is an error accessing the current directory (e.g. insufficient permissions) or the current directory does not exist

§Returns

The path to the file if found