You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
432 B
21 lines
432 B
use std::path::Path; |
|
|
|
use crate::diriter::DirIter; |
|
|
|
mod diriter; |
|
|
|
fn main() { |
|
let mut all_iter = DirIter::new(&Path::new(".")).unwrap(); |
|
while let Some(path) = all_iter.next() { |
|
println!(">> {:?}", path); |
|
} |
|
|
|
println!("-----------------------"); |
|
|
|
let all_iter = DirIter::new(&Path::new(".")).unwrap(); |
|
for path in all_iter { |
|
println!(">>> {:?}", path); |
|
} |
|
|
|
println!("Hello, world!"); |
|
}
|
|
|