Coder Social home page Coder Social logo

tertsdiepraam / glob Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rust-lang/glob

0.0 0.0 0.0 311 KB

Support for matching file paths against Unix shell style patterns.

Home Page: http://doc.rust-lang.org/glob

License: Apache License 2.0

Rust 100.00%

glob's Introduction

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"

If you're using Rust 1.30 or earlier, or edition 2015, 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),
    }
}

glob's People

Contributors

alexcrichton avatar johntitor avatar kodraus avatar g-s-k avatar blaenk avatar steveklabnik avatar huonw avatar stebalien avatar brmmm3 avatar gifnksm avatar mark-simulacrum avatar kobzol avatar fb-ikhlepitko avatar nico-abram avatar oriontvv avatar zmitchell avatar tetsuharuohzeki avatar tamird avatar dan-t avatar atul9 avatar andersk avatar atouchet avatar the8472 avatar dependabot[bot] avatar wilfred avatar tshepang avatar tomaka avatar terrynsun avatar r-52 avatar rap2hpoutre avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.