commit | 7058c74464ff0943ade6a014afdc0f84ec77fa30 | [log] [tgz] |
---|---|---|
author | James Farrell <jamesfarrell@google.com> | Wed May 08 21:43:10 2024 +0000 |
committer | James Farrell <jamesfarrell@google.com> | Wed May 08 21:43:10 2024 +0000 |
tree | ee9669cf1560633626b033a0ff49a04a55e9792a | |
parent | 9c1d2961757306e19de8d6c9d6d587ae6c2a9201 [diff] |
Update Android.bp by running cargo_embargo Test: ran cargo_embargo Change-Id: I6b560319243e7bb07d6af15c17e368cb00627c8b
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), } }