The ignore crate provides a fast recursive directory iterator that respects
various filters such as globs, file types and
.gitignore files. This crate
also provides lower level direct access to gitignore and file type matchers.
Dual-licensed under MIT or the UNLICENSE.
Add this to your
 = "0.4"
This example shows the most basic usage of this crate. This code will
recursively traverse the current directory while automatically filtering out
files and directories according to ignore globs found in files like
use Walk; for result in new
By default, the recursive directory iterator will ignore hidden files and
directories. This can be disabled by building the iterator with
use WalkBuilder; for result in new.hidden.build
See the documentation for
WalkBuilder for many other options.