use std::fs;
pub fn test() {
/*
let mut entry = fs::read_dir(".");
match entry {
Some(Ok(dir_enty)) => {
println!("{:?}", dir_enty.path());
}
_ => {
println!("{:?}", "i dont know");
}
}
}
*/
for mut entry in fs::read_dir(".") {
match entry.next() {
Some(Ok(dir_entry)) => {
println!("{:?}", dir_entry.path());
continue;
}
Some(Err(err)) => {
println!("{:?}", err);
}
None => {
println!("{:?}", "none result");
}
}
}
}