commit | 4e999c1dcff6858ca5dc097ddf664d5a060916bb | [log] [tgz] |
---|---|---|
author | James Farrell <jamesfarrell@google.com> | Mon May 20 16:54:21 2024 +0000 |
committer | James Farrell <jamesfarrell@google.com> | Mon May 20 16:54:21 2024 +0000 |
tree | 6f2bb401be2a2ea71c8c6165312cb701f3138d88 | |
parent | 7058c74464ff0943ade6a014afdc0f84ec77fa30 [diff] |
Update Android.bp by running cargo_embargo Test: ran cargo_embargo Change-Id: I9daab984fdf47c40482e5a971abb34bff844e28d
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), } }