Current working directory
Recipe | Crates | Categories |
---|---|---|
Get the current working directory |
TODO
Get the current working directory
use std::env; use anyhow::Result; fn main() -> Result<()> { let cwd = env::current_dir()?; println!("The current directory is {}", cwd.display()); Ok(()) }
TODO move to proper location