Function std::fs::walk_dirUnstable [-] [+] [src]

pub fn walk_dir<P: AsPath + ?Sized>(path: &P) -> Result<WalkDir>

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.