Skip to content

Extends Microsoft.Extensions.FileSystemGlobbing with the functionality to expand braces (e.g. *.{jpg,png}) and to allow glob excludes to be defined in the glob pattern itself (e.g. !**/*.exe to exclude .exe files)

License

Notifications You must be signed in to change notification settings

reliak/Reliak.FileSystemGlobbingExtensions

Repository files navigation

Reliak.FileSystemGlobbingExtensions

Extends Microsoft.Extensions.FileSystemGlobbing with the functionality to expand braces (e.g. *.{jpg,png}) and to allow glob excludes to be defined in the glob pattern itself (e.g. !**/*.exe to exclude .exe files)

Installation / NuGet package

Install via NuGet Packagemanager:

PM> Install-Package Reliak.FileSystemGlobbingExtensions

Exemplary usage

// include all .jpg and .png files, except for files with the name "404.png"
var matches = GlobMatcher.FindMatches(@"c:\someDirectory", "**/*.{jpg,png}", "!**/404.png");
// do something with matches

License

https://opensource.org/licenses/MIT

About

Extends Microsoft.Extensions.FileSystemGlobbing with the functionality to expand braces (e.g. *.{jpg,png}) and to allow glob excludes to be defined in the glob pattern itself (e.g. !**/*.exe to exclude .exe files)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages