pub fn locate_in_dirs<I, P>(
filename: impl AsRef<Path>,
cwd: impl AsRef<Path>,
dirs: impl FnOnce() -> I,
) -> Result<PathBuf>
Expand description
Attempts to canonicalize the path against the current directory. Failing that, if
the path is relative, it attempts all of the dirs in dirs
. If that fails, it returns
the original error.