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

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

Deprecated since 1.6.0

: superceded by the walkdir crate

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.

# Help

## Keyboard Shortcuts

?
  Show this help dialog
S
  Focus the search field
⇤
  Move up in search results
⇥
  Move down in search results
⏎
  Go to active search result

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize`)