Skip to content

mtkennerly/globetter

 
 

Repository files navigation

Globetter

This is a minimal fork of the Glob crate. As of 2022-10-04, its last release was 2019-03-07, and there are some outstanding defects. This fork is intended as a drop-in replacement for bug fixes, detailed in the changelog and releases page.

Support for matching file paths against Unix shell style patterns.

Documentation

Usage

To use globetter, add it to your project by running cargo add globetter.

Examples

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

use globetter::glob;

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

About

Support for matching file paths against Unix shell style patterns.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Languages

  • Rust 100.0%