Go to file
openharmony_ci 3228886f4f
Some checks failed
Continuous integration / Tests / OS: ${{ matrix.os }} - ${{ matrix.channel }} (1.23.0, macos-11) (push) Has been cancelled
Continuous integration / Tests / OS: ${{ matrix.os }} - ${{ matrix.channel }} (1.23.0, ubuntu-22.04) (push) Has been cancelled
Continuous integration / Tests / OS: ${{ matrix.os }} - ${{ matrix.channel }} (1.23.0, windows-2022) (push) Has been cancelled
Continuous integration / Tests / OS: ${{ matrix.os }} - ${{ matrix.channel }} (beta, macos-11) (push) Has been cancelled
Continuous integration / Tests / OS: ${{ matrix.os }} - ${{ matrix.channel }} (beta, ubuntu-22.04) (push) Has been cancelled
Continuous integration / Tests / OS: ${{ matrix.os }} - ${{ matrix.channel }} (beta, windows-2022) (push) Has been cancelled
Continuous integration / Tests / OS: ${{ matrix.os }} - ${{ matrix.channel }} (nightly, macos-11) (push) Has been cancelled
Continuous integration / Tests / OS: ${{ matrix.os }} - ${{ matrix.channel }} (nightly, ubuntu-22.04) (push) Has been cancelled
Continuous integration / Tests / OS: ${{ matrix.os }} - ${{ matrix.channel }} (nightly, windows-2022) (push) Has been cancelled
Continuous integration / Tests / OS: ${{ matrix.os }} - ${{ matrix.channel }} (stable, macos-11) (push) Has been cancelled
Continuous integration / Tests / OS: ${{ matrix.os }} - ${{ matrix.channel }} (stable, ubuntu-22.04) (push) Has been cancelled
Continuous integration / Tests / OS: ${{ matrix.os }} - ${{ matrix.channel }} (stable, windows-2022) (push) Has been cancelled
!3 修改软件名
Merge pull request !3 from archane/master
2024-11-05 10:46:25 +00:00
.github/workflows Downgrade macOS image to 11 2022-10-29 20:49:12 +09:00
src Prepare 0.3.1 release 2023-01-05 19:13:28 +09:00
tests ran cargo fmt 2019-01-17 22:23:33 -05:00
.gitignore Initial commit. 2014-08-22 15:24:47 -07:00
BUILD.gn Add GN Build Files and Custom Modifications 2023-04-12 17:26:03 +08:00
Cargo.toml Prepare 0.3.1 release 2023-01-05 19:13:28 +09:00
LICENSE-APACHE Initial commit. 2014-08-22 15:24:47 -07:00
LICENSE-MIT Initial commit. 2014-08-22 15:24:47 -07:00
README.md Prepare 0.3.1 release 2023-01-05 19:13:28 +09:00
README.OpenSource update Name in README.OpenSource 2024-10-31 17:00:50 +08:00
triagebot.toml Add triagebot configuration 2020-03-31 17:07:53 -04:00

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