commit | b4881dcf8ce7953fdcdaf0e16d991942070080e7 | [log] [tgz] |
---|---|---|
author | Matthew Maurer <mmaurer@google.com> | Tue Jun 14 16:09:08 2022 -0700 |
committer | Matthew Maurer <mmaurer@google.com> | Tue Jun 14 16:09:08 2022 -0700 |
tree | 467513817bd1d1c5ba5d039fc542409fb3942af3 | |
parent | 81cd1ea80b70ab8980e8547e70c27ffd0ff09369 [diff] |
Update TEST_MAPPING Test: None Bug: 236006683 Change-Id: Ifb61b4c5d6d6fc21684602c72e8d9e16b961d775
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), } }