cap_primitives::fs

Function read_dir

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

Construct a ReadDir to iterate over the contents of a directory, ensuring that the resolution of the path never escapes the directory tree rooted at start.