Bug: 153119942

Clone this repo:
  1. 6ec2da1 Merge "Refresh Android.bp, cargo2android.json, TEST_MAPPING." by Joel Galenson · 6 weeks ago master
  2. 07a2653 Refresh Android.bp, cargo2android.json, TEST_MAPPING. by Joel Galenson · 8 weeks ago
  3. ea67985 Update TEST_MAPPING am: b38ec1287e am: b6dce7ec20 am: 14acddaaed by Joel Galenson · 5 months ago
  4. 14acdda Update TEST_MAPPING am: b38ec1287e am: b6dce7ec20 by Joel Galenson · 5 months ago
  5. b6dce7e Update TEST_MAPPING am: b38ec1287e by Joel Galenson · 5 months ago android-s-v2-preview-1 android-s-v2-beta-2 android-s-v2-preview-2

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 = "0.3.0"

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