commit | 14acddaaede386508e65f1b58e556af5f5730146 | [log] [tgz] |
---|---|---|
author | Joel Galenson <jgalenson@google.com> | Mon Aug 30 21:08:08 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon Aug 30 21:08:08 2021 +0000 |
tree | cb03950958aa0e6190e987f65a4a8fb065f619ff | |
parent | 9e8b343cafb58c24a665d0b91b1867eccfe6b52f [diff] | |
parent | b6dce7ec20327ebf6634a8020c731fe9a1420a4f [diff] |
Update TEST_MAPPING am: b38ec1287e am: b6dce7ec20 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/glob/+/1813878 Change-Id: I38c6b241791b825563f390ce976937823438e9a6
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), } }