1 use crate::file_handler::{File, FileHandler};
3 use std::path::PathBuf;
5 pub fn find_files(directory_path: PathBuf) -> Vec<File> {
6 let mut result: Vec<File> = vec![];
7 let file_handler = FileHandler::default();
8 let entries = read_dir(directory_path).unwrap();
10 let path = entry.unwrap().path();
11 if path.starts_with(".") && !path.starts_with(".well-known") {
15 result.append(&mut find_files(path))
17 let file_type = file_handler.identify(&path);