tag | 5031c55ef1f533d8bd465af3f1a29adac14747a1 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Apr 15 10:59:39 2021 -0700 |
object | 35f777ae34c53be18b29e25355a7edd1632b5e68 |
Platform Tools Release 31.0.1 (7187441)
commit | 35f777ae34c53be18b29e25355a7edd1632b5e68 | [log] [tgz] |
---|---|---|
author | android-build-prod (mdb) <android-build-team-robot@google.com> | Thu Mar 04 00:39:18 2021 +0000 |
committer | android-build-prod (mdb) <android-build-team-robot@google.com> | Thu Mar 04 00:39:18 2021 +0000 |
tree | 28ded3e268f7970c9b9a5b9e1dfed07c37063f29 | |
parent | 9756b6fa3ac147c11756dff235a640c17807bd25 [diff] | |
parent | 75a976657b7a42a5fca3dd3c4d655ec9a809993e [diff] |
Snap for 7183507 from 75a976657b7a42a5fca3dd3c4d655ec9a809993e to sdk-release Change-Id: I0229bb8ba547f00dc7f647d95ea69342b051401a
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), } }