SHARE
TWEET

Untitled

a guest Sep 19th, 2019 97 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. fn foo() -> std::io::Result<()> {
  2.     for entry in std::fs::read_dir(".")? {
  3.         let dir = entry?;
  4.         let metadata = dir.metadata();
  5.         println!("{:?}", dir.path());
  6.        
  7.     }
  8.     Ok(())
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top