commit | 7acd549136ad5a52caac3af09f2e40e3b38a0da6 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Tue Aug 06 16:52:48 2024 +0000 |
committer | James Farrell <[email protected]> | Tue Aug 06 16:52:48 2024 +0000 |
tree | f65ca6dd1a5986067686b92b51476a32122940ad | |
parent | df2a146e1964de0bd7b457b478b96403d18b118f [diff] |
Update Android.bp by running cargo_embargo Test: ran cargo_embargo Change-Id: Ib760a07534f2441cc7341ca7712f254abf85d1aa
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), } }