| commit | 6ec2da13f2a49633691a8af4874bd802f10365f5 | [log] [tgz] |
|---|---|---|
| author | Joel Galenson <[email protected]> | Wed Dec 15 15:28:00 2021 +0000 |
| committer | Gerrit Code Review <[email protected]> | Wed Dec 15 15:28:00 2021 +0000 |
| tree | e85631ff712359653621edf9e70654f8168f0e9c | |
| parent | ea6798554cae44b3b3c3acacd691722c8135edbc [diff] | |
| parent | 07a26535843b50959c9465d2d1a2a9b76d48c4b1 [diff] |
Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING."
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), } }