use e_utils::{fs, regex::regex2}; fn main() { let base_dir = "D:\\keys"; // 修改为您的测试目录 let patterns = vec!["*.sha256","*certkey.*"]; for p in fs::tree_folder(base_dir).unwrap() { for pattern in &patterns { println!( "File {} matching pattern '{}' -> {}:", p, pattern, regex2(&p, pattern) ); } } }