commit | f2da15e2ff09800692e72c53ea6c300dae8127b5 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Jun 15 21:44:08 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Jun 15 21:44:08 2022 +0000 |
tree | 28ded3e268f7970c9b9a5b9e1dfed07c37063f29 | |
parent | af3a5c661a27777a30f60c9c615ef77ed99e35c8 [diff] | |
parent | ca6837a6eae68a09a8595ee7c72fb946fdaac71e [diff] |
Snap for 8730993 from ca6837a6eae68a09a8595ee7c72fb946fdaac71e to mainline-tzdata3-release Change-Id: Ib7f83d24a722be1485bba56f0eaa460a9b6951f5
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), } }