pub fn load_static_files(dir: &Path) -> Result<HashMap<String, Vec<u8>>, String> {
    let provided_directory = load_directory(Path::new(&dir))?;
    let static_respources = load_static_resources()?;

    let static_files = provided_directory.into_iter().chain(static_respources).collect();

    Ok(static_files)
}
/// Loads all static files into memory
Loads all static files into memory
Loads all static files into memory
pub fn load_static_files(dir: &Path) -> Result<HashMap<String, Vec<u8>>, String> {
    let provided_directory = load_directory(Path::new(&dir))?;
    let static_respources = load_static_resources()?;
    let static_files = provided_directory.into_iter().chain(static_respources).collect();
    Ok(static_files)
}
pub fn load_static_files ( dir : & Path ) -> Result < HashMap < String , Vec < u8 > > , String > { let provided_directory = load_directory ( Path :: new ( & dir ) ) ? ; let static_respources = load_static_resources ( ) ? ; let static_files = provided_directory . into_iter ( ) . chain ( static_respources ) . collect ( ) ; Ok ( static_files ) }
Loads all static files into memory
Loads all static files into memory
dir
&Path
dir
&Path