/// Gets an iterator over matching files in a directory tree.
///
/// This function is the same as [`Glob::walk`], but it additionally accepts
/// a [`WalkBehavior`]. This can be used to configure 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 of the
/// [`Glob`]. See [`Walk::root`].
///
/// # Examples
///
/// ```rust,no_run
/// use wax::{Glob, WalkBehavior};
///
/// 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::{Glob, LinkBehavior};
///
/// 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`]: crate::Glob
/// [`Glob::walk`]: crate::Glob::walk
/// [`LinkBehavior`]: crate::LinkBehavior
/// [`Walk::root`]: crate::Walk::root
/// [`WalkBehavior`]: crate::WalkBehavior
Gets an iterator over matching files in a directory tree.
This function is the same as [`Glob::walk`], but it additionally accepts
a [`WalkBehavior`]. This can be used to configure 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 of the
[`Glob`].
Gets an iterator over matching files in a directory tree . This function is the same as [ ` Glob :: walk ` ] but it additionally accepts a [ ` WalkBehavior ` ] . This can be used to configure 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 of the [ ` Glob ` ] .
pub fn walk_with_behavior(
        &self,
        directory: impl AsRef<Path>,
        behavior: impl Into<WalkBehavior>,
    ) -> Walk {
        walk::walk(self, directory, behavior)
    }
pub fn walk_with_behavior ( & self , directory : impl AsRef < Path > , behavior : impl Into < WalkBehavior > , ) -> Walk { walk :: walk ( self , directory , behavior ) }
Gets an iterator over matching files in a directory tree.
Gets an iterator over matching files in a directory tree .
&self
directory
impl AsRef<Path>
behavior
impl Into<WalkBehavior>
examples
```rust,no_run
use wax::{Glob, WalkBehavior}.

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::{Glob, LinkBehavior}.

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`]: crate::Glob
[`Glob::walk`]: crate::Glob::walk
[`LinkBehavior`]: crate::LinkBehavior
[`Walk::root`]: crate::Walk::root
[`WalkBehavior`]: crate::WalkBehavior
` ` ` rust no_run use wax :: { Glob WalkBehavior } . 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 :: { Glob LinkBehavior } . 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 ` ] : crate :: Glob [ ` Glob :: walk ` ] : crate :: Glob :: walk [ ` LinkBehavior ` ] : crate :: LinkBehavior [ ` Walk :: root ` ] : crate :: Walk :: root [ ` WalkBehavior ` ] : crate :: WalkBehavior