Ramstack.FileProviders.Globbing
2.1.0-preview.3
See the version list below for details.
dotnet add package Ramstack.FileProviders.Globbing --version 2.1.0-preview.3
NuGet\Install-Package Ramstack.FileProviders.Globbing -Version 2.1.0-preview.3
<PackageReference Include="Ramstack.FileProviders.Globbing" Version="2.1.0-preview.3" />
paket add Ramstack.FileProviders.Globbing --version 2.1.0-preview.3
#r "nuget: Ramstack.FileProviders.Globbing, 2.1.0-preview.3"
// Install Ramstack.FileProviders.Globbing as a Cake Addin #addin nuget:?package=Ramstack.FileProviders.Globbing&version=2.1.0-preview.3&prerelease // Install Ramstack.FileProviders.Globbing as a Cake Tool #tool nuget:?package=Ramstack.FileProviders.Globbing&version=2.1.0-preview.3&prerelease
Ramstack.FileProviders.Globbing
Represents a .NET library implementing an IFileProvider
that applies glob-based filtering rules to determine which files to include or exclude.
Getting Started
To install the Ramstack.FileProviders.Globbing
NuGet package
in your project, run the following command:
dotnet add package Ramstack.FileProviders.Globbing
GlobbingFileProvider
GlobbingFileProvider
class supports glob pattern matching for file paths, allowing for flexible file selection.
You can specify patterns for both including and excluding files.
It relies on the Ramstack.Globbing package for its globbing capabilities.
Example:
IFileProvider provider = new GlobbingFileProvider(innerProvider, patterns: ["**/*.txt", "docs/*.md" ], excludes: ["**/README.md"]);
foreach (IFileInfo file in provider.GetDirectoryContents("/"))
Console.WriteLine(file.Name);
Related Packages
- Ramstack.FileProviders — Additional file providers.
- Ramstack.FileProviders.Extensions — Useful and convenient extensions for
IFileProvider
. - Ramstack.FileProviders.Composition — Provides a helper class for flattening and composing
IFileProvider
.
Supported versions
Version | |
---|---|
.NET | 6, 7, 8 |
Contributions
Bug reports and contributions are welcome.
License
This package is released as open source under the MIT License. See the LICENSE file for more details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net6.0
- Microsoft.Extensions.FileProviders.Abstractions (>= 6.0.0)
- Ramstack.Globbing (>= 2.2.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
2.2.1 | 119 | 9/14/2024 |
2.2.0 | 111 | 9/14/2024 |
2.1.0 | 111 | 8/28/2024 |
2.1.0-preview.3 | 51 | 8/27/2024 |
2.1.0-preview.2 | 51 | 8/26/2024 |
2.1.0-preview.1 | 84 | 8/21/2024 |
2.0.0 | 115 | 8/11/2024 |