fn find_sub_folders (folder_path: &String) -> Vec<String> {
    let check_file: &Path = &folder_path.as_ref();
    let mut valid_files : Vec<String> = Vec::new();

    // Validate directory
    if check_file.is_dir() {
        let mut files_found: Vec<_> = fs::read_dir(&folder_path).unwrap()
                                        .map(|r| r.unwrap())
                                        .collect();
        files_found.sort_by_key(|dir| dir.path());

        
        for file in files_found {
            if file.path().is_dir() && file.path().file_name().unwrap() != "output" {
                valid_files.push(file.path().to_str().unwrap().to_string());
            }
        }
    }
    valid_files

}
/// Look for folders inside a folder and returns a vector of paths as strings
Look for folders inside a folder and returns a vector of paths as strings
Look for folders inside a folder and returns a vector of paths as strings
fn find_sub_folders (folder_path: &String) -> Vec<String> {
    let check_file: &Path = &folder_path.as_ref();
    let mut valid_files : Vec<String> = Vec::new();
    // Validate directory
    if check_file.is_dir() {
        let mut files_found: Vec<_> = fs::read_dir(&folder_path).unwrap()
                                        .map(|r| r.unwrap())
                                        .collect();
        files_found.sort_by_key(|dir| dir.path());
        for file in files_found {
            if file.path().is_dir() && file.path().file_name().unwrap() != "output" {
                valid_files.push(file.path().to_str().unwrap().to_string());
            }
        }
    }
    valid_files
}
fn find_sub_folders ( folder_path : & String ) -> Vec < String > { let check_file : & Path = & folder_path . as_ref ( ) ; let mut valid_files : Vec < String > = Vec :: new ( ) ; // Validate directory if check_file . is_dir ( ) { let mut files_found : Vec < _ > = fs :: read_dir ( & folder_path ) . unwrap ( ) . map ( | r | r . unwrap ( ) ) . collect ( ) ; files_found . sort_by_key ( | dir | dir . path ( ) ) ; for file in files_found { if file . path ( ) . is_dir ( ) && file . path ( ) . file_name ( ) . unwrap ( ) != " " { valid_files . push ( file . path ( ) . to_str ( ) . unwrap ( ) . to_string ( ) ) ; } } } valid_files }
Look for folders inside a folder and returns a vector of paths as strings
Look for folders inside a folder and returns a vector of paths as strings
folder_path
&String