[−][src]Function syscall::call::chdir
pub fn chdir<T: AsRef<[u8]>>(path: T) -> Result<usize>
Change the process's working directory
This function will attempt to set the process's working directory to path
, which can be
either a relative, scheme relative, or absolute path.
On success, Ok(0)
will be returned. On error, one of the following errors will be returned.
Errors
EACCES
- permission is denied for one of the components ofpath
, orpath
EFAULT
-path
does not point to the process's addressible memoryEIO
- an I/O error occurredENOENT
-path
does not exitENOTDIR
-path
is not a directory