tag | f5ff340562dc589a9d0ac5a7515e4ff8e86d7a7d | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Feb 06 19:40:47 2023 -0800 |
object | 8004631403e801a2082bf1cd7e6805b03bcf5f15 |
Android Platform 12.1.0 Release 12 (SPM2.220819.017)
commit | 8004631403e801a2082bf1cd7e6805b03bcf5f15 | [log] [tgz] |
---|---|---|
author | android-build-team Robot <android-build-team-robot@google.com> | Sun Feb 21 00:05:31 2021 +0000 |
committer | android-build-team Robot <android-build-team-robot@google.com> | Sun Feb 21 00:05:31 2021 +0000 |
tree | 28ded3e268f7970c9b9a5b9e1dfed07c37063f29 | |
parent | 935a5f5e3b2d30e7fdc4236e98c538edb12a179b [diff] | |
parent | 34b2a1fc483b0375845b8859b8f7a5acf57fbae1 [diff] |
Snap for 7160059 from 34b2a1fc483b0375845b8859b8f7a5acf57fbae1 to sc-v2-release Change-Id: I3c2186406a602875e330cacf2c62ecbbfede07c0
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), } }