commit | 2423dcf99b1d286e417f3668ab38086bb856aaa8 | [log] [tgz] |
---|---|---|
author | Nikita Ioffe <ioffe@google.com> | Wed Jan 18 14:21:17 2023 +0000 |
committer | Nikita Ioffe <ioffe@google.com> | Wed Jan 18 14:21:17 2023 +0000 |
tree | 60e45ba297088fd5b94fafdaf48d219a2da2e05b | |
parent | 5b8f8e4a0d6324d2b3e06dec8f3f3e04b5b82135 [diff] |
Run cargo2android.py --config cargo2android.json Bug: 254912288 Test: m Change-Id: If89ead66f2287602095a585f34558ba5aa4f5c3d
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), } }