Glob.cs 5.1.1643

Glob.cs

Version Build status codecov.io netstandard2.0 net461

Single-source-file path globbing for .NET (netstandard2.0 and net461).

Features

  • Choose case sensitivity
  • Optionally match only directories
  • Injectable file system implementation for easy testing (uses System.IO.Abstractions)
  • Can cancel long running match
  • Throw or continue on file system errors
  • Optionally log errors to supplied log implementation
  • Lazy tree traversal
  • Option to limit depth of ** expansion

Syntax

  • ? matches a single character
  • * matches zero or more characters
  • ** matches zero or more recursive directories, e.g. a\**\x matches a\x, a\b\x, a\b\c\x, etc.
  • [...] matches a set of characters, syntax is the same as character groups in Regex.
  • {group1,group2,...} matches any of the pattern groups. Groups can contain groups and patterns, e.g. {a\b,{c,d}*}.

Usage

Install the NuGet package Glob.cs. Then:

var dlls = Glob.Expand(@"c:\windows\system32\**\*.dll");

Showing the top 20 packages that depend on Glob.cs.

Packages Downloads
dotnet-xscgen-proj
A .NET Core CLI tool to generate XmlSerializer compatible C# classes from XML Schema files.
36
dotnet-xscgen-proj
A .NET Core CLI tool to generate XmlSerializer compatible C# classes from XML Schema files.
33
dotnet-xscgen-proj
A .NET Core CLI tool to generate XmlSerializer compatible C# classes from XML Schema files.
32
dotnet-xscgen-proj
A .NET Core CLI tool to generate XmlSerializer compatible C# classes from XML Schema files.
31
dotnet-xscgen-proj
A .NET Core CLI tool to generate XmlSerializer compatible C# classes from XML Schema files.
30

.NET Framework 4.6.1

.NET Standard 2.0

Version Downloads Last updated
5.1.1643 56 12/14/2025
5.1.1625 37 12/13/2025
5.1.1491 43 12/12/2025
5.1.1490 7 10/07/2026
5.1.1253 5 10/11/2026
5.1.1198 30 12/15/2025
5.1.766 31 12/15/2025
5.0.224 34 12/14/2025
4.0.166 30 01/07/2026
4.0.37 31 12/13/2025
3.0.27 36 12/13/2025
3.0.26 33 12/13/2025
3.0.25 38 12/15/2025
2.1.21 31 12/15/2025
2.0.13 33 12/13/2025
2.0.8 39 12/11/2025
1.3.0 40 12/11/2025
1.2.0 44 12/13/2025
1.1.0 9 09/30/2026
1.0.0 33 12/11/2025