| commit | 970009d0352bb061968c2c1c2db1abb541b276e4 | [log] [tgz] |
|---|---|---|
| author | James Farrell <[email protected]> | Tue May 21 15:04:07 2024 +0000 |
| committer | Automerger Merge Worker <[email protected]> | Tue May 21 15:04:07 2024 +0000 |
| tree | 6f2bb401be2a2ea71c8c6165312cb701f3138d88 | |
| parent | 6fed22fc57fcb5d5e96bf9a1e402b16f532bf3ca [diff] | |
| parent | df2a146e1964de0bd7b457b478b96403d18b118f [diff] |
Update Android.bp by running cargo_embargo am: 4e999c1dcf am: df2a146e19 Original change: https://android-review.googlesource.com/c/platform/external/rust/crates/glob/+/3095498 Change-Id: Icc7332020b40e79c63cf9feef0bc945c2582b440 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), } }