commit | da305187faddd0956995c75b6396c0fe10fae3f9 | [log] [tgz] |
---|---|---|
author | Julien Desprez <jdesprez@google.com> | Tue Feb 16 20:26:59 2021 +0000 |
committer | Julien Desprez <jdesprez@google.com> | Tue Feb 16 20:27:02 2021 +0000 |
tree | f0812629855054cb0766bee54c7745ec74ca99d3 | |
parent | d89499bb06e505275cfafb4b28ba03f3b57b9ced [diff] |
Clean up rust_test_host TEST_MAPPING after default update After b/177689340, rust_test_host doesn't need TEST_MAPPING config anymore to run in presubmit. Change-Id: Ica7a843d4b1e644ff31efe27e1b9eb10e1a7d47f Test: presubmit Bug: 178646865
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), } }