• Home
Name
Date
Size
#Lines
LOC

..--

src/03-May-2024-1,412961

tests/03-May-2024-378315

.cargo_vcs_info.jsonD03-May-202474 65

.gitignoreD03-May-202420 32

.travis.ymlD03-May-2024563 2521

Android.bpD03-May-20241.6 KiB4743

Cargo.tomlD03-May-2024933 2523

Cargo.toml.origD03-May-2024406 1714

LICENSED03-May-202410.6 KiB202169

LICENSE-APACHED03-May-202410.6 KiB202169

LICENSE-MITD03-May-20241 KiB2622

METADATAD03-May-2024390 2019

MODULE_LICENSE_APACHE2D03-May-20240

OWNERSD03-May-202440 21

README.mdD03-May-2024724 3926

TEST_MAPPINGD03-May-2024145 98

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