Microsoft.Extensions.FileSystemGlobbing 9.0.0-rc.1.24431.7
About
Provides support for matching file system names/paths using glob patterns.
Key Features
- Contains the
Matcher
type, 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.
Showing the top 20 packages that depend on Microsoft.Extensions.FileSystemGlobbing.
Packages | Downloads |
---|---|
Microsoft.Extensions.FileProviders.Physical
File provider for physical files for Microsoft.Extensions.FileProviders.
|
1 |
Microsoft.Extensions.FileProviders.Physical
File provider for physical files for Microsoft.Extensions.FileProviders.
When using NuGet 3.x this package requires at least version 3.4.
|
1 |
https://go.microsoft.com/fwlink/?LinkID=799421
.NET Framework 4.6.2
- No dependencies.
.NET 8.0
- No dependencies.
.NET 9.0
- No dependencies.
.NET Standard 2.0
- No dependencies.