globdir

A library that allows you to glob the file system. Checkout http://en.wikipedia.org/wiki/Glob_(programming) for a better understand of globbing.


Keywords
glob
Install
Install-Package globdir -Version 0.0.1

Documentation

Globdir

A way to glob Windows directories using .NET. Check here to understand what glob is.

Documentation

Still has to be created, and will be hosted on the github wiki.

Usage

Just add the reference via nuget and call the static GetMatches method on the GlobDir.Glob class.

const string pattern = "**/File*.txt";
var globTestDir = "c:\temp\folder\".Replace("\\", "/");
var matches = Glob.GetMatches(string.Format("{0}" + pattern, globTestDir)).ToList();

Right now, read the tests, as they make it easy to understand the usage.

Install via Nuget:

Install-Package globdir

The package can be found here: http://nuget.org/packages/globdir

Support

Maintainers

This software is open source. The specific license is still to be decided.