Bug: 153119942

Clone this repo:
  1. df2a146 Update Android.bp by running cargo_embargo am: 4e999c1dcf by James Farrell · 10 weeks ago main master
  2. 4e999c1 Update Android.bp by running cargo_embargo by James Farrell · 10 weeks ago
  3. e166479 Update Android.bp by running cargo_embargo am: 7058c74464 by James Farrell · 3 months ago
  4. 7058c74 Update Android.bp by running cargo_embargo by James Farrell · 3 months ago
  5. 9c1d296 Migrate to cargo_embargo. am: b47024f75b am: 5f368e7159 am: 6879b310b3 by Andrew Walbran · 9 months ago android14-qpr3-release android14-qpr3-s2-release emu-34-2-dev android-14.0.0_r50 android-14.0.0_r51 android-14.0.0_r52 android-14.0.0_r53 android-14.0.0_r54

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.1"

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