commit | 09b25db44c8aa92f1e1252c83e6ca2322b6434c0 | [log] [tgz] |
---|---|---|
author | James Farrell <[email protected]> | Tue Aug 27 13:31:51 2024 +0000 |
committer | James Farrell <[email protected]> | Tue Aug 27 13:31:51 2024 +0000 |
tree | a30bd7cde42d48cbb9b641778a2b20717333a499 | |
parent | 9dc25dabafdd4dfd2f7346bf9a90ee52bc61a7ff [diff] |
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
Support for matching file paths against Unix shell style patterns.
To use glob
, add this to your Cargo.toml
:
[dependencies] glob = "0.3.1"
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), } }