pub fn set_cwd<P>(path: P) -> Result<(), FuError> where
P: AsRef<Path>,
Changes the current working directory to the specified path.
Provides basic path expansion
Returns an Err
if the operation fails.
use fungus::prelude::*;
sys::set_cwd("~/").unwrap();
println!("current working directory: {:?}", sys::cwd().unwrap());