[automerger skipped] Mark ab/7061308 as merged in stage. am: 75a976657b -s ours am: 7d2fa61bf7 -s ours am: 34b2a1fc48 -s ours am skip reason: Change-Id Ide4ea6df226e29d038bf758c797c711957d37a53 with SHA-1 27d7d8c5a6 is in history Original change: undetermined MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I402ceb301fbc7d4fcf8cbcc4c3e27a5d6bdbaea7
Support for matching file paths against Unix shell style patterns.
To use glob, add this to your Cargo.toml:
[dependencies] 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), } }