commit | 12de8ffacea759b2b8058bd52edf99b3bd289860 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Sun Jul 12 14:17:50 2020 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Mon Jul 13 15:59:24 2020 -0700 |
tree | 0e453f9702da9940251a6bf255b88d137a349c45 | |
parent | fe13f06bda6cf897f700e594526dc99a0d561005 [diff] |
Regenerate Android.bp with new cargo2android.py Test: make Change-Id: I81d3854156348c8f259a16e9bb6ef00b0060a986
Support for matching file paths against Unix shell style patterns.
To use glob
, add this to your Cargo.toml
:
[dependencies] glob = "0.3.0"
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), } }