fn load_directory(path: &Path) -> Result<HashMap<String, Vec<u8>>, String> {
    return match get_all_files_in_dir(path) {
        Err(error) => {
            let err = format!("Could not read files in path {}: {}", path.display(), error);
            Err(err)
        }
        Ok(list) => Ok(list)
    };
}
/// Loads the files in the path from the filesystem into memory
Loads the files in the path from the filesystem into memory
Loads the files in the path from the filesystem into memory
fn load_directory(path: &Path) -> Result<HashMap<String, Vec<u8>>, String> {
    return match get_all_files_in_dir(path) {
        Err(error) => {
            let err = format!("Could not read files in path {}: {}", path.display(), error);
            Err(err)
        }
        Ok(list) => Ok(list)
    };
}
fn load_directory ( path : & Path ) -> Result < HashMap < String , Vec < u8 > > , String > { return match get_all_files_in_dir ( path ) { Err ( error ) => { let err = format ! ( " " path display ( ) error ) ; Err ( err ) } Ok ( list ) => Ok ( list ) } ; }
Loads the files in the path from the filesystem into memory
Loads the files in the path from the filesystem into memory
path
&Path
path
&Path