cap_primitives::fs

Function open

Source
pub fn open(start: &File, path: &Path, options: &OpenOptions) -> Result<File>
Expand description

Perform an openat-like operation, ensuring that the resolution of the path never escapes the directory tree rooted at start.