Skip to content

Instantly share code, notes, and snippets.

@rust-play
Created January 10, 2020 21:13
Show Gist options
  • Save rust-play/feb0c72e73029549e9c59fac278bad2f to your computer and use it in GitHub Desktop.
Save rust-play/feb0c72e73029549e9c59fac278bad2f to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
use std::fs;
fn main() {
let paths = fs::read_dir("./").unwrap();
for path in paths {
println!("Name: {}", path.unwrap().path().display())
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment