tag | 1451bd69168b7f1e4a6b485fd167d9f7db6e9fc1 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Feb 09 15:54:23 2022 -0800 |
object | 6ec2da13f2a49633691a8af4874bd802f10365f5 |
Android S V2 Beta 3
commit | 6ec2da13f2a49633691a8af4874bd802f10365f5 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Wed Dec 15 15:28:00 2021 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 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), } }