tag | e90c61a328119dfe56e759e2fbac91e57247b2bc | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Oct 28 08:48:19 2021 -0700 |
object | 766836ffdd925be31a6bf030474aa71223a407a9 |
Android 12.0.0 release 5
commit | 766836ffdd925be31a6bf030474aa71223a407a9 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Sun Feb 21 00:05:04 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Sun Feb 21 00:05:04 2021 +0000 |
tree | 28ded3e268f7970c9b9a5b9e1dfed07c37063f29 | |
parent | 18b495a84b03f5ce3d81e3394ad764f0a1ad325f [diff] | |
parent | 34b2a1fc483b0375845b8859b8f7a5acf57fbae1 [diff] |
Snap for 7160059 from 34b2a1fc483b0375845b8859b8f7a5acf57fbae1 to sc-d1-release Change-Id: Ib873c0141dc3d5df10a16589888e9bb9b7bf253e
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), } }