Home
Head's Up: I'm in the middle of upgrading my site. Most things are in place, but there are something missing and/or broken including image alt text. Please bear with me while I'm getting things fixed.

Do A Case Insensitive glob Director Search In Rust

rust
//! ```cargo
//! [dependencies]
//! glob = "0.3.1"
//! ```

use glob::glob_with;
use glob::MatchOptions;

fn main() {
  let options = MatchOptions {
      case_sensitive: false,
      require_literal_separator: false,
      require_literal_leading_dot: false,
  };
  for entry in glob_with("glob_test/*o*", options).unwrap() {
      if let Ok(path) = entry {
          println!("{:?}", path.display())
      }
  }
}
results start

- This example is stright from > the rust docs > https : //docs.rs/glob/latest/glob/ >

- I haven't looked up the separator and leading _ dot options yet