tag | f0424ee4b4a5b57ce7d3379ae60cfb9ef020f953 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Feb 18 09:58:20 2021 -0800 |
object | 0fbbcf1c1bed2b783de26f12744cf6effed12205 |
Android S Preview 1
commit | 0fbbcf1c1bed2b783de26f12744cf6effed12205 | [log] [tgz] |
---|---|---|
author | Treehugger Robot <treehugger-gerrit@google.com> | Tue Feb 16 22:08:47 2021 +0000 |
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | Tue Feb 16 22:08:47 2021 +0000 |
tree | 28ded3e268f7970c9b9a5b9e1dfed07c37063f29 | |
parent | c4c9f870f3643c5458bdf51e34ba83e7e47f98f2 [diff] | |
parent | da305187faddd0956995c75b6396c0fe10fae3f9 [diff] |
Merge "Clean up rust_test_host TEST_MAPPING after default update"
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), } }