Skip to content
/ glob Public

Cross-platform glob library for C++

License

Notifications You must be signed in to change notification settings

sryze/glob

Repository files navigation

Glob

Build Status

Glob is a simple cross-platform wrapper around system APIs for finding files based on patterns.

Below is an example program:

#include <iostream>
#include "glob.h"

int main(int argc, char **argv) {
    if (argc < 2) {
        std::cerr << "Usage: " << argv[0] << " pattern1 [pattern2 [...]]"
                  << std::endl;
        return 1;
    }
    for (int i = 1; i < argc; i++) {
        glob::glob glob(argv[i]);
        while (glob) {
            std::cout << glob.current_match() << std::endl;
            glob.next();
        }
    }
}

TODO

  • Custom glob parser with identical behavior across platforms

About

Cross-platform glob library for C++

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published