pub fn find_file<P: AsRef<Path>>(path: P, file_name: &str, extension: &str) -> Option<PathBuf> {
    let entries = list_files_and_folders_in(path)?;

    let mut file_name = file_name.to_owned();
    file_name.push('.');
    file_name.push_str(extension);

    find_artifact(entries, &file_name)
}
// Looks for file named `file_name` in path
Looks for file named `file_name` in path
Looks for file named ` file_name ` in path
pub fn find_file<P: AsRef<Path>>(path: P, file_name: &str, extension: &str) -> Option<PathBuf> {
    let entries = list_files_and_folders_in(path)?;
    let mut file_name = file_name.to_owned();
    file_name.push('.');
    file_name.push_str(extension);
    find_artifact(entries, &file_name)
}
pub fn find_file < P : AsRef < Path > > ( path : P , file_name : & str , extension : & str ) -> Option < PathBuf > { let entries = list_files_and_folders_in ( path ) ? ; let mut file_name = file_name . to_owned ( ) ; file_name . push ( '.' ) ; file_name . push_str ( extension ) ; find_artifact ( entries , & file_name ) }
Looks for file named `file_name` in path
Looks for file named ` file_name ` in path
path
P
file_name
&str
extension
&str
path
P
file_name
&str
extension
&str