| Name | Date | Size | #Lines | LOC | ||
|---|---|---|---|---|---|---|
| .. | - | - | ||||
| src/ | 04-Jul-2025 | - | 1,502 | 1,031 | ||
| tests/ | 04-Jul-2025 | - | 475 | 399 | ||
| .android-checksum.json | D | 04-Jul-2025 | 1.2 KiB | 1 | 1 | |
| .cargo-checksum.json | D | 04-Jul-2025 | 745 | 1 | 1 | |
| Android.bp | D | 04-Jul-2025 | 827 | 32 | 28 | |
| CHANGELOG.md | D | 04-Jul-2025 | 2.2 KiB | 34 | 27 | |
| Cargo.toml | D | 04-Jul-2025 | 1.2 KiB | 46 | 40 | |
| LICENSE | D | 04-Jul-2025 | 10.6 KiB | 202 | 169 | |
| LICENSE-APACHE | D | 04-Jul-2025 | 10.6 KiB | 202 | 169 | |
| METADATA | D | 04-Jul-2025 | 390 | 18 | 17 | |
| MODULE_LICENSE_APACHE2 | D | 04-Jul-2025 | 0 | |||
| README.md | D | 04-Jul-2025 | 798 | 38 | 26 | |
| TEST_MAPPING | D | 04-Jul-2025 | 374 | 20 | 19 | |
| cargo_embargo.json | D | 04-Jul-2025 | 141 | 11 | 11 | |
| triagebot.toml | D | 04-Jul-2025 | 9 | 2 | 1 |
README.md
1glob 2==== 3 4Support for matching file paths against Unix shell style patterns. 5 6[](https://github.com/rust-lang/glob/actions/workflows/rust.yml) 7 8[Documentation](https://docs.rs/glob) 9 10## Usage 11 12To use `glob`, add this to your `Cargo.toml`: 13 14```toml 15[dependencies] 16glob = "0.3.1" 17``` 18 19If you're using Rust 1.30 or earlier, or edition 2015, add this to your crate root: 20```rust 21extern crate glob; 22``` 23 24## Examples 25 26Print all jpg files in /media/ and all of its subdirectories. 27 28```rust 29use glob::glob; 30 31for entry in glob("/media/**/*.jpg").expect("Failed to read glob pattern") { 32 match entry { 33 Ok(path) => println!("{:?}", path.display()), 34 Err(e) => println!("{:?}", e), 35 } 36} 37``` 38