commit | 50349b2b4360b4d4ae6017c9ed97aef582e9994a | [log] [tgz] |
---|---|---|
author | Android Build Coastguard Worker <[email protected]> | Fri Jul 07 01:03:08 2023 +0000 |
committer | Android Build Coastguard Worker <[email protected]> | Fri Jul 07 01:03:08 2023 +0000 |
tree | 1b1ba7f0a897cdeda990520838f863cbaf2a3276 | |
parent | 5fc6ff8548047f55293c3d6317b7ca7833aacc3a [diff] | |
parent | d0a666aa5b1cdb5d9d06a4592782bfd6eb887b29 [diff] |
Snap for 10447354 from d0a666aa5b1cdb5d9d06a4592782bfd6eb887b29 to mainline-cellbroadcast-release Change-Id: I4358eec2dbdfa6fb5086cd96784a7b9c1b4b23a0
Support for matching file paths against Unix shell style patterns.
To use glob
, add this to your Cargo.toml
:
[dependencies] glob = "0.3.1"
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), } }