pub fn chdir<P: ?Sized + NixPath>(path: &P) -> Result<()>
Documentation
Change the current working directory of the calling process (see
chdir(2)).
This function may fail in a number of different scenarios. See the man
pages for additional details on possible failure cases.