Function nix::unistd::fchdir

source ·
pub fn fchdir(dirfd: RawFd) -> Result<()>
Available on crate feature fs only.
Expand description

Change the current working directory of the process to the one given as an open file descriptor (see fchdir(2)).

This function may fail in a number of different scenarios. See the man pages for additional details on possible failure cases.