pub fn chdir<P>(path: &P) -> Result<(), Errno> where
    P: NixPath + ?Sized
Expand description

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.