pub struct ProcessCwd { /* private fields */ }Expand description
Per-process current working directory state.
Implementations§
Source§impl ProcessCwd
impl ProcessCwd
Sourcepub fn with_path(path: &str) -> Result<Self, KernelError>
pub fn with_path(path: &str) -> Result<Self, KernelError>
Create a ProcessCwd with a specific initial directory.
Sourcepub fn set(&mut self, path: &str) -> Result<(), KernelError>
pub fn set(&mut self, path: &str) -> Result<(), KernelError>
Set the current working directory.
The path must be absolute. It is normalized before storage.