commit | c9dd31e910a2784834f1c5d79c11608413ca7494 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Mon Aug 23 09:30:03 2021 -0700 |
committer | Joel Galenson <jgalenson@google.com> | Mon Aug 23 09:30:03 2021 -0700 |
tree | 48a09383f4b68424346329b485a790044acc4733 | |
parent | 75a976657b7a42a5fca3dd3c4d655ec9a809993e [diff] |
Update TEST_MAPPING Test: None Change-Id: Ifd530f9a0f77ee1dfcde606475452c1d6d9af20e
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), } }