pub fn new<P: AsRef<Path>>(root: P) -> Self {
        WalkDir {
            opts: WalkDirOptions {
                follow_links: false,
                max_open: 10,
                min_depth: 0,
                max_depth: ::std::usize::MAX,
                sorter: None,
            },
            root: root.as_ref().to_path_buf(),
        }
    }
/// Create a builder for a recursive directory iterator starting at the
/// file path `root`. If `root` is a directory, then it is the first item
/// yielded by the iterator. If `root` is a file, then it is the first
/// and only item yielded by the iterator. If `root` is a symlink, then it
/// is always followed.
Create a builder for a recursive directory iterator starting at the
file path `root`. If `root` is a directory, then it is the first item
yielded by the iterator. If `root` is a file, then it is the first
and only item yielded by the iterator. If `root` is a symlink, then it
is always followed.
Create a builder for a recursive directory iterator starting at the file path ` root ` . If ` root ` is a directory then it is the first item yielded by the iterator . If ` root ` is a file then it is the first and only item yielded by the iterator . If ` root ` is a symlink then it is always followed .
pub fn new<P: AsRef<Path>>(root: P) -> Self {
        WalkDir {
            opts: WalkDirOptions {
                follow_links: false,
                max_open: 10,
                min_depth: 0,
                max_depth: ::std::usize::MAX,
                sorter: None,
            },
            root: root.as_ref().to_path_buf(),
        }
    }
pub fn new < P : AsRef < Path > > ( root : P ) -> Self { WalkDir { opts : WalkDirOptions { follow_links : false , max_open : 10 , min_depth : 0 , max_depth : :: std :: usize :: MAX , sorter : None , } , root : root . as_ref ( ) . to_path_buf ( ) , } }
Create a builder for a recursive directory iterator starting at the
file path `root`.
Create a builder for a recursive directory iterator starting at the file path ` root ` .
root
P
root
P