• Home
Name Date Size #Lines LOC

..--

.github/workflows/06-Sep-2024-3628

src/06-Sep-2024-1,435976

tests/06-Sep-2024-378315

.cargo_vcs_info.jsonD06-Sep-202494 66

.gitignoreD06-Sep-202420 32

Android.bpD06-Sep-20241.9 KiB5753

Cargo.tomlD06-Sep-2024952 3127

Cargo.toml.origD06-Sep-2024429 1815

LICENSED06-Sep-202410.6 KiB202169

LICENSE-APACHED06-Sep-202410.6 KiB202169

LICENSE-MITD06-Sep-20241 KiB2622

METADATAD06-Sep-2024626 2422

MODULE_LICENSE_APACHE2D06-Sep-20240

OWNERSD06-Sep-202440 21

README.mdD06-Sep-2024748 3926

TEST_MAPPINGD06-Sep-2024431 2120

cargo_embargo.jsonD06-Sep-202425 43

triagebot.tomlD06-Sep-20249 21

README.md

1glob
2====
3
4Support for matching file paths against Unix shell style patterns.
5
6[![Continuous integration](https://github.com/rust-lang/glob/actions/workflows/rust.yml/badge.svg)](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