Function cap_primitives::fs::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
.