cap_primitives::fs

Function open_dir

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

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