commit | 28858fcf9487f392093a565e4298e66c20d21d14 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Dec 13 00:10:59 2023 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Dec 13 00:10:59 2023 +0000 |
tree | 16a8693b7e94b7448c32627a7aec7116e65ea896 | |
parent | 51d64b6483386cfdabcaed2555a70776063712f6 [diff] | |
parent | 36b3dc0e14b83d1fd526e91e98b79def524d6b00 [diff] |
Snap for 11211409 from 36b3dc0e14b83d1fd526e91e98b79def524d6b00 to sdk-release Change-Id: If119088d82189f5ffff0b83e5c99e0e6a0ee2fac
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), } }