Microsoft.Extensions.FileSystemGlobbing 8.0.0

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.

No packages depend on Microsoft.Extensions.FileSystemGlobbing.

https://go.microsoft.com/fwlink/?LinkID=799421

This package has no dependencies.

Version Downloads Last updated
8.0.0 12 2024/2/29
7.0.0 11 2023/7/15
6.0.0 13 2022/7/18
5.0.0 15 2021/9/29
3.1.8 10 2022/9/12
3.1.6 8 2023/3/2
3.1.5 11 2021/10/7
3.1.2 9 2023/3/6
3.1.0 10 2022/9/12
3.0.0 8 2021/11/30
2.2.0 11 2023/8/11
2.1.0 8 2021/10/7