#glob #shell #unix #file #matching #patterns #paths

glob

Support for matching file paths against Unix shell style patterns

25 releases

0.2.11 Mar 6, 2016
0.2.10 Apr 14, 2015
0.2.7 Mar 25, 2015
0.1.3 Dec 29, 2014
0.1.0 Nov 27, 2014

#20 in Filesystem

Download history 16488/week @ 2018-08-22 21222/week @ 2018-08-29 19911/week @ 2018-09-05 22308/week @ 2018-09-12 22753/week @ 2018-09-19 21287/week @ 2018-09-26 21903/week @ 2018-10-03 22198/week @ 2018-10-10 24262/week @ 2018-10-17 21941/week @ 2018-10-24 24968/week @ 2018-10-31 24665/week @ 2018-11-07 22030/week @ 2018-11-14

67,385 downloads per month
Used in 1,115 crates (201 directly)

MIT/Apache

50KB
891 lines

glob

Support for matching file paths against Unix shell style patterns.

Build Status

Documentation

Usage

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

[dependencies]
glob = "*"

And add this to your crate root:

extern crate glob;

lib.rs:

Support for matching file paths against Unix shell style patterns.

The glob and glob_with functions, in concert with the Paths type, allow querying the filesystem for all files that match a particular pattern - just like the libc glob function (for an example see the glob documentation). The methods on the Pattern type provide functionality for checking if individual paths match a particular pattern - in a similar manner to the libc fnmatch function For consistency across platforms, and for Windows support, this module is implemented entirely in Rust rather than deferring to the libc glob/fnmatch functions.

No runtime deps