net10.0net11.0.NETFramework4.6.2.NETStandard2.0
File system globbing to find files matching a specified pattern.
Published
Aug 11, 2026
2mo ago
Total Downloads
4.0B
3,978,091,327
Install
dotnet add package Microsoft.Extensions.FileSystemGlobbing --version 11.0.0-preview.7.26381.103
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard | |
| Other |
README
About
Provides support for matching file system names/paths using glob patterns.
Key Features
- Contains the
Matchertype, which can be used to match files in the file system based on user-defined patterns.
How to Use
Get all matching files:
using Microsoft.Extensions.FileSystemGlobbing;
Matcher matcher = new();
matcher.AddIncludePatterns(new[] { "*.txt", "*.asciidoc", "*.md" });
string searchDirectory = "../starting-folder/";
IEnumerable<string> matchingFiles = matcher.GetResultsInFullPath(searchDirectory);
// Use matchingFiles if there are any found.
// The files in this collection are fully qualified file system paths.
Main Types
The main types provided by this library are:
Microsoft.Extensions.FileSystemGlobbing.Matcher
Additional Documentation
Feedback & Contributing
Microsoft.Extensions.FileSystemGlobbing is released as open source under the MIT license. Bug reports and contributions are welcome at the GitHub repository.
Changes from Previous Version
No structural changes between v11.0.0-preview.6.26359.118 and v11.0.0-preview.7.26381.103.
Adoption Assessment
A verified publisher signal is available. Assess fit from the package's supported frameworks, license and dependency graph rather than popularity alone.
This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.