pub fn walk_with_behavior(
        &self,
        directory: impl Into<PathBuf>,
        behavior: impl Into<WalkBehavior>,
    ) -> impl 'static + FileIterator<Entry = GlobEntry> {
        self.walker(directory).walk_with_behavior(behavior)
    }
Gets an iterator over matching files in a directory tree.

This function is the same as [`Glob::walk`], but it additionally accepts
a [`WalkBehavior`] that configures how the traversal interacts with
symbolic links, the maximum depth from the root, etc.

Depth is relative to the root directory of the traversal, which is
determined by joining the given path and any [invariant
prefix][`Glob::partition`] of the `Glob`.

See [`Glob::walk`] for more information.

# Examples

```rust,no_run
use wax::walk::{Entry, WalkBehavior};
use wax::Glob;

let glob = Glob::new("**/*.(?i){jpg,jpeg}").unwrap();
for entry in glob.walk_with_behavior("./Pictures", WalkBehavior::default()) {
let entry = entry.unwrap();
println!("JPEG: {:?}", entry.path());
}
```

By default, symbolic links are read as normal files and their targets
are ignored. To follow symbolic links and traverse any directories
that they reference, specify a [`LinkBehavior`].

```rust,no_run
use wax::walk::{Entry, LinkBehavior};
use wax::Glob;

let glob = Glob::new("**/*.txt").unwrap();
for entry in glob.walk_with_behavior("/var/log", LinkBehavior::ReadTarget) {
let entry = entry.unwrap();
println!("Log: {:?}", entry.path());
}
```

[`Glob::partition`]: crate::Glob::partition
[`Glob::walk`]: crate::Glob::walk
[`LinkBehavior`]: crate::walk::LinkBehavior
[`WalkBehavior`]: crate::walk::WalkBehavior
crates/turborepo-wax/src/walk/glob.rs