Function simics::util::find_file_in_dir

source ยท
pub fn find_file_in_dir<P, S>(directory: P, pattern: S) -> Result<PathBuf>
where P: AsRef<Path>, S: AsRef<str>,
Expand description

Locate a file recursively using a regex pattern in directory. If there are multiple occurrences of a filename, it is undefined which will be returned.