Bug: 153119942

Clone this repo:
  1. 9c1d296 Migrate to cargo_embargo. am: b47024f75b am: 5f368e7159 am: 6879b310b3 by Andrew Walbran · 6 months ago emu-34-2-dev main master
  2. 1ad085c Migrate to cargo_embargo. am: b47024f75b am: 36b3dc0e14 am: f1daefdc6e by Andrew Walbran · 6 months ago
  3. 6879b31 Migrate to cargo_embargo. am: b47024f75b am: 5f368e7159 by Andrew Walbran · 6 months ago
  4. f1daefd Migrate to cargo_embargo. am: b47024f75b am: 36b3dc0e14 by Andrew Walbran · 6 months ago
  5. 5f368e7 Migrate to cargo_embargo. am: b47024f75b by Andrew Walbran · 6 months ago

glob

Support for matching file paths against Unix shell style patterns.

Continuous integration

Documentation

Usage

To use glob, add this to your Cargo.toml:

[dependencies]
glob = "0.3.1"

And add this to your crate root:

extern crate glob;

Examples

Print all jpg files in /media/ and all of its subdirectories.

use glob::glob;

for entry in glob("/media/**/*.jpg").expect("Failed to read glob pattern") {
    match entry {
        Ok(path) => println!("{:?}", path.display()),
        Err(e) => println!("{:?}", e),
    }
}