Function set_current_dir
fn set_current_dir<P: AsRef<crate::path::Path>>(path: P) -> io::Result<()>
Changes the current working directory to the specified path.
Platform-specific behavior
This function currently corresponds to the chdir function on Unix
and the SetCurrentDirectoryW function on Windows.
Returns an Err if the operation fails.
Examples
use env;
use Path;
let root = new;
assert!;
println!;