fn load_static_resources() -> Result<HashMap<String, Vec<u8>>, String> {
    let current_dir = get_current_dir()?;
    match load_directory(&PathBuf::from(string_from_path(current_dir)? + "/resources/static")) {
        Ok(ok) => return Ok(ok),
        Err(err) => return Err("Make sure the resources folder exists in the current directory".to_string())
    }
}
/// Loads the files from the static resources directory into memory
Loads the files from the static resources directory into memory
Loads the files from the static resources directory into memory
fn load_static_resources() -> Result<HashMap<String, Vec<u8>>, String> {
    let current_dir = get_current_dir()?;
    match load_directory(&PathBuf::from(string_from_path(current_dir)? + "/resources/static")) {
        Ok(ok) => return Ok(ok),
        Err(err) => return Err("Make sure the resources folder exists in the current directory".to_string())
    }
}
fn load_static_resources ( ) -> Result < HashMap < String , Vec < u8 > > , String > { let current_dir = get_current_dir ( ) ? ; match load_directory ( & PathBuf :: from ( string_from_path ( current_dir ) ? + " " ) ) { Ok ( ok ) => return Ok ( ok ) , Err ( err ) => return Err ( " " . to_string ( ) ) } }
Loads the files from the static resources directory into memory
Loads the files from the static resources directory into memory