# glob

> Match file paths against Unix shell style patterns in Rust

Source: https://talira.ai/catalog/glob-rj61n4pn
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [libraries / filesystem](https://talira.ai/categories/libraries/filesystem), [languages / rust](https://talira.ai/categories/languages/rust)
- Licence: MIT OR Apache-2.0[^2]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]
- Backed by: [The Rust Project](https://talira.ai/orgs/rust-project.md)

glob is the Rust Project's crate for matching file paths against Unix shell style patterns. Its glob and glob_with functions walk the filesystem for every path a pattern matches, like libc's glob, and its Pattern type checks single paths, like fnmatch. It's written entirely in Rust rather than calling libc, so it behaves the same on Windows. Patterns support ?, *, recursive ** and [...] character classes, with options for case sensitivity and literal separators and leading dots.

## Links

- GitHub: https://github.com/rust-lang/glob
- Docs: https://docs.rs/glob

## Problems it solves

- find all files matching a pattern like **/*.jpg from my Rust program
- check whether a path matches a shell wildcard pattern in Rust
- expand glob patterns in a Rust CLI the same way on Windows and Linux

## Features

- find every file matching a pattern, like libc glob
- check a single path against a pattern, like fnmatch
- recursive ** matching across directories
- [...] and [!...] character classes
- case-insensitive and literal-separator match options
- pure Rust, the same behaviour on Windows

## Trust

Overall: 0.41 out of 1.
Signals: maintenance 0.46, adoption 0.56, momentum 0.21, community 0.69, backing 0.30, extensibility 0.00.

- last commit 52 days ago
- 1 commits in the last 90 days
- latest release v0.3.4 4 months ago
- 599 GitHub stars
- 51 contributors
- backed by The Rust Project

## Alternatives

- [walkdir](https://talira.ai/catalog/walkdir-m96d9cgg.md): Walk a directory tree recursively in Rust, efficiently and on every platform

## Sources

[^1]: https://github.com/rust-lang/glob/blob/main/Cargo.toml (checked 28 Nov 2026)
[^2]: https://github.com/rust-lang/glob/blob/main/src/lib.rs (checked 28 Nov 2026)
