tag | a85ed6b391e1f4bbb5fcd60b67a0c07c45e44970 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu May 19 15:58:56 2022 -0700 |
object | 33797bd57184736904d8104ad9aec6a9b815db5e |
Platform Tools Release 32.0.0 (8006631)
commit | 33797bd57184736904d8104ad9aec6a9b815db5e | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Dec 16 00:03:54 2021 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Dec 16 00:03:54 2021 +0000 |
tree | e85631ff712359653621edf9e70654f8168f0e9c | |
parent | ea3e79a64e6717b7b60a3f3fcc33001d08ef2add [diff] | |
parent | 6ec2da13f2a49633691a8af4874bd802f10365f5 [diff] |
Snap for 8005954 from 6ec2da13f2a49633691a8af4874bd802f10365f5 to sdk-release Change-Id: I5a3b76c40fa563195e5e97fe569d0fc5fc1ad658
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), } }