Migrate 25 crates to monorepo.

env_logger
epoll
errno
fallible-iterator
fallible-streaming-iterator
fastrand
flagset
fragile
fs-err
futures
futures-core
futures-executor
futures-io
futures-macro
futures-sink
futures-task
futures-test
futures-util
gbm
getrandom
glob
googletest
googletest_macro
h2
hashbrown

Bug: 339424309
Test: treehugger
Change-Id: I9fb6b4b36754d353c2a4c6ef9a67c3a588b193fb
3 files changed
tree: a30bd7cde42d48cbb9b641778a2b20717333a499
  1. .github/
  2. src/
  3. tests/
  4. .cargo_vcs_info.json
  5. .gitignore
  6. Android.bp
  7. Cargo.toml
  8. Cargo.toml.orig
  9. LICENSE-APACHE
  10. LICENSE-MIT
  11. METADATA
  12. MODULE_LICENSE_APACHE2
  13. OWNERS
  14. README.md
  15. triagebot.toml
README.md

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