- cwd
- pwd
- current_dir
Current working directory
examples/files/pwd/src/main.rs
use std::env::current_dir; fn main() { let folder = current_dir().unwrap(); println!("{:?}", folder); println!("{}", folder.display()); }
use std::env::current_dir; fn main() { let folder = current_dir().unwrap(); println!("{:?}", folder); println!("{}", folder.display()); }