pub fn find_case_insensitive_directory(
directory: &Path,
expected_name: &str,
) -> Result<Option<PathBuf>>Expand description
Finds one subdirectory in directory with ASCII case-insensitive name
matching.
The same deterministic tie-break as find_case_insensitive_file, and the
same caveat: find_case_insensitive_directories is what to reach for when
several matches is the answer rather than a tie to break.
Used for resolving canonical install paths like Override/, modules/ and
lips/ that mods or platform copies frequently case-fold differently.
ยงErrors
Propagates the io::Error from reading directory or one of its
entries. A directory that exists and holds no match is Ok(None).