Function std::fs::walk_dir [] [src]

pub fn walk_dir<P: AsRef<Path>>(path: P) -> Result<WalkDir>
Unstable

: the precise semantics and defaults for a recursive walk may change and this may end up accounting for files such as symlinks differently

Returns an iterator that will recursively walk the directory structure rooted at path.

The path given will not be iterated over, and this will perform iteration in some top-down order. The contents of unreadable subdirectories are ignored.

The iterator will yield instances of io::Result<DirEntry>. New errors may be encountered after an iterator is initially constructed.