Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
src/ | 23-Nov-2023 | - | 1,412 | 961 | ||
tests/ | 23-Nov-2023 | - | 378 | 315 | ||
.cargo_vcs_info.json | D | 23-Nov-2023 | 74 | 6 | 5 | |
.gitignore | D | 23-Nov-2023 | 20 | 3 | 2 | |
.travis.yml | D | 23-Nov-2023 | 563 | 25 | 21 | |
Android.bp | D | 23-Nov-2023 | 1.6 KiB | 47 | 43 | |
Cargo.toml | D | 23-Nov-2023 | 933 | 25 | 23 | |
Cargo.toml.orig | D | 23-Nov-2023 | 406 | 17 | 14 | |
LICENSE | D | 23-Nov-2023 | 10.6 KiB | 202 | 169 | |
LICENSE-APACHE | D | 23-Nov-2023 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | D | 23-Nov-2023 | 1 KiB | 26 | 22 | |
METADATA | D | 23-Nov-2023 | 390 | 20 | 19 | |
MODULE_LICENSE_APACHE2 | D | 23-Nov-2023 | 0 | |||
OWNERS | D | 23-Nov-2023 | 40 | 2 | 1 | |
README.md | D | 23-Nov-2023 | 724 | 39 | 26 | |
TEST_MAPPING | D | 23-Nov-2023 | 145 | 9 | 8 |
README.md
1glob 2==== 3 4Support for matching file paths against Unix shell style patterns. 5 6[![Build Status](https://travis-ci.org/rust-lang-nursery/glob.svg?branch=master)](https://travis-ci.org/rust-lang-nursery/glob) 7 8[Documentation](https://doc.rust-lang.org/glob) 9 10## Usage 11 12To use `glob`, add this to your `Cargo.toml`: 13 14```toml 15[dependencies] 16glob = "0.3.0" 17``` 18 19And add this to your crate root: 20 21```rust 22extern crate glob; 23``` 24 25## Examples 26 27Print all jpg files in /media/ and all of its subdirectories. 28 29```rust 30use glob::glob; 31 32for entry in glob("/media/**/*.jpg").expect("Failed to read glob pattern") { 33 match entry { 34 Ok(path) => println!("{:?}", path.display()), 35 Err(e) => println!("{:?}", e), 36 } 37} 38``` 39