pub fn walk_directory(
root: &Path,
max_depth: Option<u32>,
) -> Result<Vec<WalkEntry>, TraversalError>Expand description
Walk a directory with support for .gitignore and .ignore.
max_depth=0 maps to unlimited recursion (None), positive values limit depth.
The returned entries are sorted lexicographically by path.