use dirscent::dirscent; fn main() { for path in std::env::args().skip(1) { for it in dirscent(path).unwrap().skip_permission_denied() { match it { Ok(entry) => println!("{}", entry.path().display()), Err(err) => eprintln!("{err:?}"), } } } }