| commit | 642f2f39925cf5aef97c40367b57e218a35e2a64 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <[email protected]> | Thu Feb 17 03:33:43 2022 +0000 |
| committer | Android Build Coastguard Worker <[email protected]> | Thu Feb 17 03:33:43 2022 +0000 |
| tree | e85631ff712359653621edf9e70654f8168f0e9c | |
| parent | 8c6c718488bb601f4c10d9c0e5195b96c56316d0 [diff] | |
| parent | 0b9ee10917e5465f7a217f0bf5b44909b160a299 [diff] |
Snap for 8191477 from 0b9ee10917e5465f7a217f0bf5b44909b160a299 to tm-frc-resolv-release Change-Id: I326dcb4624deeaf62330dceb677fcfb888e2c45e
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), } }