commit | 07a26535843b50959c9465d2d1a2a9b76d48c4b1 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Mon Nov 29 14:03:52 2021 -0800 |
committer | Joel Galenson <jgalenson@google.com> | Fri Dec 10 15:32:47 2021 -0800 |
tree | e85631ff712359653621edf9e70654f8168f0e9c | |
parent | b6dce7ec20327ebf6634a8020c731fe9a1420a4f [diff] |
Refresh Android.bp, cargo2android.json, TEST_MAPPING. Test: None Change-Id: If94ce554ab16ea4fdba3ad48d0efb49ceb28d6c4
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), } }