| commit | 6e1290dfb4ababd23e7b20b171caa66ca24347c3 | [log] [tgz] |
|---|---|---|
| author | Android Build Coastguard Worker <[email protected]> | Thu Feb 17 03:25:11 2022 +0000 |
| committer | Android Build Coastguard Worker <[email protected]> | Thu Feb 17 03:25:11 2022 +0000 |
| tree | e85631ff712359653621edf9e70654f8168f0e9c | |
| parent | 204cda2773eaa113eb3e4dc6fe5c9fa3207ddc9b [diff] | |
| parent | 0b9ee10917e5465f7a217f0bf5b44909b160a299 [diff] |
Snap for 8191477 from 0b9ee10917e5465f7a217f0bf5b44909b160a299 to tm-frc-networking-release Change-Id: If2fca73548dad0c41e67f2c0090ba36513961b3b
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), } }