tag | e5a61e9cffc9dd71c2e74caaac98384a21cb89c3 | |
---|---|---|
tagger | The Android Open Source Project <initial-contribution@android.com> | Mon Jun 08 14:44:14 2020 -0700 |
object | d187512e446c10689371e93cf6a926832e32ac48 |
Platform Tools Release 30.0.2 (6538114)
commit | d187512e446c10689371e93cf6a926832e32ac48 | [log] [tgz] |
---|---|---|
author | Chih-Hung Hsieh <chh@google.com> | Tue Apr 07 14:24:01 2020 -0700 |
committer | Chih-Hung Hsieh <chh@google.com> | Tue Apr 07 14:26:41 2020 -0700 |
tree | 258029db89ebc6a3e2305e6742f27098f306c416 | |
parent | 287a77911af3baafa7ea94618f75c0ea00d6d310 [diff] |
Import 'glob' package version 0.3.0 * Add OWNERS Bug: 152884384 Test: make Change-Id: Ie45204118f6a3941a7e9e137c2224fc329fbc347
Support for matching file paths against Unix shell style patterns.
To use glob
, add this to your Cargo.toml
:
[dependencies] glob = "0.3.0"
And add this to your crate root:
extern crate glob;
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), } }