commit | ef03b6db721ee5532b970c093edd8028b3c3ba1d | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sun Jun 19 04:32:15 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sun Jun 19 04:32:15 2022 +0000 |
tree | 467513817bd1d1c5ba5d039fc542409fb3942af3 | |
parent | 9b4c1ed3f47e1ed4eb1abe6d2014dc3eaa1aa67f [diff] | |
parent | 8288ad328e6a54da54740c48f53047536b0bc632 [diff] |
Snap for 8743232 from 8288ad328e6a54da54740c48f53047536b0bc632 to gki13-boot-release Change-Id: I9dc51846dbd49728b15b4231cafd389fa2e336a9
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), } }