commit | b47024f75b07377bce4631d306d807d39a14906f | [log] [tgz] |
---|---|---|
author | Andrew Walbran <qwandor@google.com> | Wed Nov 08 17:53:29 2023 +0000 |
committer | Andrew Walbran <qwandor@google.com> | Wed Nov 08 17:53:29 2023 +0000 |
tree | 16a8693b7e94b7448c32627a7aec7116e65ea896 | |
parent | 7a979c00c82ea4aa81d776dcc52b521d54b09dba [diff] |
Migrate to cargo_embargo. Bug: 293289578 Test: Ran cargo_embargo, compared Android.bp Change-Id: I2b98eb3ac1db66682586dcae1821d05825d0f88b
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), } }