Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
.github/workflows/ | 12-May-2024 | - | 36 | 28 | ||
src/ | 12-May-2024 | - | 1,435 | 976 | ||
tests/ | 12-May-2024 | - | 378 | 315 | ||
.gitignore | D | 12-May-2024 | 20 | 3 | 2 | |
BUILD.gn | D | 12-May-2024 | 889 | 27 | 23 | |
Cargo.toml | D | 12-May-2024 | 429 | 18 | 15 | |
LICENSE-APACHE | D | 12-May-2024 | 10.6 KiB | 202 | 169 | |
LICENSE-MIT | D | 12-May-2024 | 1 KiB | 26 | 22 | |
README.OpenSource | D | 12-May-2024 | 337 | 11 | 11 | |
README.md | D | 12-May-2024 | 748 | 39 | 26 | |
triagebot.toml | D | 12-May-2024 | 9 | 2 | 1 |
README.OpenSource
1[ 2 { 3 "Name": "glob", 4 "License": "Apache License V2.0, MIT", 5 "License File": "LICENSE-APACHE, LICENSE-MIT", 6 "Version Number": "0.3.1", 7 "Owner": "fangting12@huawei.com", 8 "Upstream URL": "https://github.com/rust-lang/glob", 9 "Description": "A Rust library that provides support for glob pattern matching. " 10 } 11]
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 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