pub fn find_root_project_file(
    starting_directory: impl AsRef<Path>,
    file_name: &str
) -> Option<PathBuf>
Expand description

Get the current directory and then search upwards in the directory hierarchy for a file name

§Arguments

  • starting_directory - The directory to start searching from
  • file_name - The name of the file to search for

§Returns

The path to the file if found, otherwise None