Created
January 10, 2020 21:13
-
-
Save rust-play/feb0c72e73029549e9c59fac278bad2f to your computer and use it in GitHub Desktop.
Code shared from the Rust Playground
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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