Bug: 153119942

Clone this repo:
  1. 424ec15 Upgrade glob to 0.3.1 by Jeff Vander Stoep · 6 days ago master
  2. 6b42859 Update TEST_MAPPING by Jeff Vander Stoep · 9 days ago
  3. 2423dcf Run cargo2android.py --config cargo2android.json by Nikita Ioffe · 3 weeks ago main-16k-with-phones
  4. 5b8f8e4 Merge "Update TEST_MAPPING" am: 8288ad328e am: ea65942a16 am: 4e1bf22e58 am: 80f084c976 by Treehugger Robot · 8 months ago
  5. 80f084c Merge "Update TEST_MAPPING" am: 8288ad328e am: ea65942a16 am: 4e1bf22e58 by Treehugger Robot · 8 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),
    }
}