tag | efca5c4fc1abc8388377a916b6cc47c632cf1d9f | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Thu Feb 02 03:04:19 2023 -0800 |
object | 1e8888b27918f8594518ea91abb910ed64ef5e51 |
aml_uwb_331310030 (9378579,com.google.android.uwb)
commit | 1e8888b27918f8594518ea91abb910ed64ef5e51 | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jun 09 07:09:56 2022 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Thu Jun 09 07:09:56 2022 +0000 |
tree | 04e1f5beb84a6589374bc4dc670374327c99f50a | |
parent | a9f11cbd077289f9288bef2e2587b3a445c39e9f [diff] | |
parent | 491a05717d51ae340c3311564ba4b7d1730ec797 [diff] |
Snap for 8701348 from 491a05717d51ae340c3311564ba4b7d1730ec797 to mainline-uwb-release Change-Id: I2d7b4e288437e6c8cc99d1aeef2d203b9959220c
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), } }