Sha256: 3482ed957e7e22efdf5f368d92c497b932c665bce3ad17db8ec31c1007164539

Contents?: true

Size: 748 Bytes

Versions: 34

Compression:

Stored size: 748 Bytes

Contents

glob
====

Support for matching file paths against Unix shell style patterns.

[![Continuous integration](https://github.com/rust-lang/glob/actions/workflows/rust.yml/badge.svg)](https://github.com/rust-lang/glob/actions/workflows/rust.yml)

[Documentation](https://docs.rs/glob)

## Usage

To use `glob`, add this to your `Cargo.toml`:

```toml
[dependencies]
glob = "0.3.1"
```

And add this to your crate root:

```rust
extern crate glob;
```

## Examples

Print all jpg files in /media/ and all of its subdirectories.

```rust
use glob::glob;

for entry in glob("/media/**/*.jpg").expect("Failed to read glob pattern") {
    match entry {
        Ok(path) => println!("{:?}", path.display()),
        Err(e) => println!("{:?}", e),
    }
}
```

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
wasmtime-27.0.0 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-26.0.0 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-25.0.2 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-25.0.1 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-25.0.0 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-24.0.0 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-23.0.2 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-22.0.0 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-21.0.1 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-20.0.2 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-20.0.0 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-18.0.3 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-17.0.1 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-17.0.0 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-16.0.0 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-15.0.1 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-15.0.0 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-14.0.4 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-14.0.3 ./ext/cargo-vendor/glob-0.3.1/README.md
wasmtime-14.0.1 ./ext/cargo-vendor/glob-0.3.1/README.md