Ramstack.FileSystem.Globbing
1.1.1
dotnet add package Ramstack.FileSystem.Globbing --version 1.1.1
NuGet\Install-Package Ramstack.FileSystem.Globbing -Version 1.1.1
<PackageReference Include="Ramstack.FileSystem.Globbing" Version="1.1.1" />
paket add Ramstack.FileSystem.Globbing --version 1.1.1
#r "nuget: Ramstack.FileSystem.Globbing, 1.1.1"
// Install Ramstack.FileSystem.Globbing as a Cake Addin #addin nuget:?package=Ramstack.FileSystem.Globbing&version=1.1.1 // Install Ramstack.FileSystem.Globbing as a Cake Tool #tool nuget:?package=Ramstack.FileSystem.Globbing&version=1.1.1
Ramstack.FileSystem.Globbing
Provides an implementation of Ramstack.FileSystem
that applies glob-based filtering rules to determine
which files and directories of the underlying file system to include or exclude.
It relies on the Ramstack.Globbing package for its globbing capabilities.
Getting Started
To install the Ramstack.FileSystem.Globbing
NuGet package
in your project, run the following command:
dotnet add package Ramstack.FileSystem.Globbing
Usage
using Ramstack.FileSystem.Globbing;
PhysicalFileSystem fileSystem = new PhysicalFileSystem(@"C:\path");
// Include only "*.txt" files and "*.md" files in the "/docs" directory, excluding any "README.md" file
GlobbingFileSystem fs = new GlobbingFileSystem(fileSystem,
patterns: ["**/*.txt", "docs/*.md"],
excludes: ["**/README.md"]);
await foreach (VirtualFile file in fs.GetFilesAsync("/"))
{
Console.WriteLine(file.FullName);
}
Related Projects
- Ramstack.FileSystem.Abstractions - Provides a virtual file system abstraction.
- Ramstack.FileSystem.Physical - Provides an implementation based on the local file system.
- Ramstack.FileSystem.Azure - Provides an implementation using Azure Blob storage.
- Ramstack.FileSystem.Amazon - Provides an implementation using Amazon S3 storage.
- Ramstack.FileSystem.Zip - Provides an implementation based on ZIP archives.
- Ramstack.FileSystem.Readonly - Provides a read-only wrapper for the underlying file system.
- Ramstack.FileSystem.Prefixed - Adds a prefix to file paths within the underlying file system.
- Ramstack.FileSystem.Sub - Wraps the underlying file system, restricting access to a specific subpath.
- Ramstack.FileSystem.Adapters - Provides integration with
Microsoft.Extensions.FileProviders
. - Ramstack.FileSystem.Composite - Provides an implementation that combines multiple file systems into a single composite file system.
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
- Ramstack.FileSystem.Abstractions (>= 1.1.1)
- 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 |
---|---|---|
1.1.1 | 129 | 9/14/2024 |
1.1.0 | 98 | 9/14/2024 |
1.0.1 | 100 | 9/13/2024 |
1.0.0 | 62 | 9/13/2024 |
1.0.0-preview.9 | 52 | 9/10/2024 |
1.0.0-preview.8 | 57 | 9/5/2024 |
1.0.0-preview.7 | 51 | 9/4/2024 |
1.0.0-preview.6 | 59 | 9/3/2024 |
1.0.0-preview.5 | 51 | 8/30/2024 |
1.0.0-preview.4 | 77 | 8/24/2024 |
1.0.0-preview.3 | 75 | 8/22/2024 |
1.0.0-preview.2 | 76 | 8/21/2024 |
1.0.0-preview.1 | 59 | 8/20/2024 |