tag | 95999635975f645bc2c208b5f7cd029befe78802 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Fri Feb 03 17:02:17 2023 -0800 |
object | 817bf8e471e9e580ee4bfad687db32b7074a0b23 |
Platform Tools Release 34.0.0 (9560563)
commit | 817bf8e471e9e580ee4bfad687db32b7074a0b23 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Feb 03 18:16:42 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Fri Feb 03 18:16:42 2023 +0000 |
tree | ebe71c26fe83651640f46b9944cfdf666a153241 | |
parent | 315e1014a8df01529810c495022c300fbc745ea0 [diff] | |
parent | 424ec153962f3376137f3801ad3a0e93614ddb97 [diff] |
Snap for 9560500 from 424ec153962f3376137f3801ad3a0e93614ddb97 to sdk-release Change-Id: I1359d7c0c000801d47641e786c2620bfb9a9122b
Support for matching file paths against Unix shell style patterns.
To use glob
, add this to your Cargo.toml
:
[dependencies] glob = "0.3.1"
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), } }