commit | b38ec1287e25f5913be1a4a1b623e0a1f09d1037 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Mon Aug 30 09:36:10 2021 -0700 |
committer | Joel Galenson <jgalenson@google.com> | Mon Aug 30 09:36:10 2021 -0700 |
tree | cb03950958aa0e6190e987f65a4a8fb065f619ff | |
parent | c9dd31e910a2784834f1c5d79c11608413ca7494 [diff] |
Update TEST_MAPPING Test: None Change-Id: I93431fd1d3489388e26e236dd2981d0ec58734f8
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), } }