tag | c9c75512d08157e139ead2850ead6f1596e4f527 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Wed Aug 31 06:39:48 2022 -0700 |
object | d315b9aae5f60de31a7dd40f0ec3c0f127be93d0 |
t_frc_ips_330443010
commit | d315b9aae5f60de31a7dd40f0ec3c0f127be93d0 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon May 09 06:00:29 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Mon May 09 06:00:29 2022 +0000 |
tree | 04e1f5beb84a6589374bc4dc670374327c99f50a | |
parent | a16ad78474a2ebda471ab02a4c3040328df6d3d5 [diff] | |
parent | 82e2c5d25e1da87438f71fe80d2ff3c6ca0dfa7e [diff] |
Snap for 8558685 from 82e2c5d25e1da87438f71fe80d2ff3c6ca0dfa7e to tm-frc-ipsec-release Change-Id: I25e6981a72799a6e3c13155ba847533f0e1a1549
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), } }