commit | ad5a081c9e9bac24129dfdf6033930e0612f2165 | [log] [tgz] |
---|---|---|
author | David LeGare <legare@google.com> | Wed Mar 02 19:54:34 2022 +0000 |
committer | David LeGare <legare@google.com> | Tue Mar 08 18:03:37 2022 +0000 |
tree | 04e1f5beb84a6589374bc4dc670374327c99f50a | |
parent | 6ec2da13f2a49633691a8af4874bd802f10365f5 [diff] |
Update TEST_MAPPING Test: cd external/rust/crates && atest --host -c Change-Id: I4b30d6ae5dca61ba12bade843b945e1bb45c8bd6
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), } }