Function fsutils::cd [−][src]
pub fn cd(cd_path: &Path) -> Option<()>
Expand description
Change the current working directory
Usage:
use fsutils::cd; use std::path::Path; assert_eq!(cd(Path::new("target")).is_some(), true); assert_eq!(cd(Path::new("does_not_exist")).is_none(), true)