commit | 4e51d43d9092de8f58e98afe540b1b14b707b2a8 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Tue Aug 24 18:24:05 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Tue Aug 24 18:24:05 2021 +0000 |
tree | 48a09383f4b68424346329b485a790044acc4733 | |
parent | 34b2a1fc483b0375845b8859b8f7a5acf57fbae1 [diff] | |
parent | c9dd31e910a2784834f1c5d79c11608413ca7494 [diff] |
Update TEST_MAPPING am: c9dd31e910 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/glob/+/1806176 Change-Id: I7ccc1e2e30eb0fb0450d4c2bb8cff8c9820ebe78
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), } }