| commit | 6fed22fc57fcb5d5e96bf9a1e402b16f532bf3ca | [log] [tgz] |
|---|---|---|
| author | James Farrell <[email protected]> | Thu May 09 20:27:41 2024 +0000 |
| committer | Automerger Merge Worker <[email protected]> | Thu May 09 20:27:41 2024 +0000 |
| tree | ee9669cf1560633626b033a0ff49a04a55e9792a | |
| parent | 9c1d2961757306e19de8d6c9d6d587ae6c2a9201 [diff] | |
| parent | e166479aee54b9dd860d5ef6e0440231a6980e02 [diff] |
Update Android.bp by running cargo_embargo am: 7058c74464 am: e166479aee Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/glob/+/3080528 Change-Id: I3c8b52e1010e1f80edadb373a37e1c1352fa141a Signed-off-by: Automerger Merge Worker <[email protected]>
Support for matching file paths against Unix shell style patterns.
To use glob, add this to your Cargo.toml:
[dependencies] glob = "0.3.1"
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), } }