Bug: 153119942

Clone this repo:
  1. d89499b Mark ab/6881855 as merged by Xin Li · 8 weeks ago master
  2. 6d1878a TEST_MAPPING: test dependers of this crate am: 5608315058 by Jeff Vander Stoep · 2 months ago
  3. 5608315 TEST_MAPPING: test dependers of this crate by Jeff Vander Stoep · 3 months ago
  4. fc852f6 Skip ab/6749736 in stage. by Xin Li · 3 months ago
  5. 8e5d7b1 Fix glob/METADATA am: 3d9b9a7df1 am: 1baba24172 am: b7123e1c20 am: 1d1683abfd by Chih-Hung Hsieh · 5 months ago


Support for matching file paths against Unix shell style patterns.

Build Status



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

glob = "0.3.0"

And add this to your crate root:

extern crate glob;


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),