4 Support for matching file paths against Unix shell style patterns.
6 [![Build Status](https://travis-ci.org/rust-lang-nursery/glob.svg?branch=master)](https://travis-ci.org/rust-lang-nursery/glob)
8 [Documentation](https://doc.rust-lang.org/glob)
12 To use `glob`, add this to your `Cargo.toml`:
19 And add this to your crate root:
27 Print all jpg files in /media/ and all of its subdirectories.
32 for entry in glob("/media/**/*.jpg").expect("Failed to read glob pattern") {
34 Ok(path) => println!("{:?}", path.display()),
35 Err(e) => println!("{:?}", e),