| commit | ed141dfdc7bbafc1cacdd63b9c4c05c21c6f6ff8 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <[email protected]> | Sat May 11 01:12:40 2024 +0000 |
| committer | Android Build Coastguard Worker <[email protected]> | Sat May 11 01:12:40 2024 +0000 |
| tree | ee9669cf1560633626b033a0ff49a04a55e9792a | |
| parent | 9c1d2961757306e19de8d6c9d6d587ae6c2a9201 [diff] | |
| parent | 6fed22fc57fcb5d5e96bf9a1e402b16f532bf3ca [diff] |
Snap for 11828632 from 6fed22fc57fcb5d5e96bf9a1e402b16f532bf3ca to 24Q3-release Change-Id: I326af49e39277c9a580806ffda9d459c93b6890a
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), } }