tag | c8f1b502d04ca7b83751936df48074b72ef169a6 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Dec 08 18:17:21 2021 -0800 |
object | ca6837a6eae68a09a8595ee7c72fb946fdaac71e |
Android mainline 12.0.0 release 15
commit | ca6837a6eae68a09a8595ee7c72fb946fdaac71e | [log] [tgz] |
---|---|---|
author | Xin Li <delphij@google.com> | Sat Feb 20 13:17:36 2021 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Feb 20 13:17:36 2021 +0000 |
tree | 28ded3e268f7970c9b9a5b9e1dfed07c37063f29 | |
parent | 8838fcc396876963da8cd1fcd2250fdb03a71fc9 [diff] | |
parent | 34b2a1fc483b0375845b8859b8f7a5acf57fbae1 [diff] |
[automerger skipped] Mark ab/7061308 as merged in stage. am: 75a976657b -s ours am: 7d2fa61bf7 -s ours am: 34b2a1fc48 -s ours am skip reason: Change-Id Ide4ea6df226e29d038bf758c797c711957d37a53 with SHA-1 27d7d8c5a6 is in history Original change: undetermined MUST ONLY BE SUBMITTED BY AUTOMERGER Change-Id: I402ceb301fbc7d4fcf8cbcc4c3e27a5d6bdbaea7
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), } }