No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Daniel Baumann da7a3ecc39
Releasing fastforward version 0.3.3-1~ffwd13+u1.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2026-07-20 14:12:06 +02:00
.github Adding upstream version 0.3.3. 2026-07-20 14:11:56 +02:00
debian Releasing fastforward version 0.3.3-1~ffwd13+u1. 2026-07-20 14:12:06 +02:00
src Adding upstream version 0.3.3. 2026-07-20 14:11:56 +02:00
tests Adding upstream version 0.3.3. 2026-07-20 14:11:56 +02:00
.cargo_vcs_info.json Adding upstream version 0.3.3. 2026-07-20 14:11:56 +02:00
.gitignore Adding upstream version 0.3.3. 2026-07-20 14:11:56 +02:00
Cargo.lock Adding upstream version 0.3.3. 2026-07-20 14:11:56 +02:00
Cargo.toml Adding upstream version 0.3.3. 2026-07-20 14:11:56 +02:00
Cargo.toml.orig Adding upstream version 0.3.3. 2026-07-20 14:11:56 +02:00
CHANGELOG.md Adding upstream version 0.3.3. 2026-07-20 14:11:56 +02:00
LICENSE-APACHE Adding upstream version 0.3.3. 2026-07-20 14:11:56 +02:00
LICENSE-MIT Adding upstream version 0.3.3. 2026-07-20 14:11:56 +02:00
README.md Adding upstream version 0.3.3. 2026-07-20 14:11:56 +02:00
triagebot.toml Adding upstream version 0.3.3. 2026-07-20 14:11:56 +02:00

glob

Support for matching file paths against Unix shell style patterns.

Continuous integration

Documentation

Usage

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

[dependencies]
glob = "0.3.2"

If you're using Rust 1.30 or earlier, or edition 2015, add this to your crate root:

extern crate glob;

Examples

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

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),
    }
}