glob-sl
Support for matching file paths against Unix shell style patterns.
This crate is a fork of the glob crate. The only difference is that glob-rs add option follow_links to MatchOptions.
Usage
To use glob-sl
, add this to your Cargo.toml
:
[]
= "0.4.2"
And add this to your crate root:
extern crate glob_sl;
Examples
Print all jpg files in /media/ and all of its subdirectories.
use glob;
for entry in glob.expect