Bug: 153119942

Clone this repo:
  1. 3085af9 Make glob available to product and vendor am: f159f2a269 by Matthew Maurer · 3 weeks ago master
  2. f159f2a Make glob available to product and vendor by Matthew Maurer · 3 weeks ago
  3. 5288a57 Upgrade glob to 0.3.1 am: 424ec15396 by Jeff Vander Stoep · 8 weeks ago
  4. 424ec15 Upgrade glob to 0.3.1 by Jeff Vander Stoep · 8 weeks ago
  5. c52b9fb Update TEST_MAPPING am: 6b42859661 by Jeff Vander Stoep · 8 weeks 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),
    }
}