From 3cee2ce78e7bea07cddbf013226104c7e0842f6f Mon Sep 17 00:00:00 2001 From: rameel Date: Wed, 9 Jul 2025 15:12:47 +0500 Subject: [PATCH 1/4] Update Ramstack.Globbing to version 2.3.1 --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index fed12e0..3e1cfba 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -12,6 +12,6 @@ - + From 553a558bd255b828462d151bab4441312a2aa342 Mon Sep 17 00:00:00 2001 From: rameel Date: Wed, 9 Jul 2025 15:14:48 +0500 Subject: [PATCH 2/4] Update test packages --- Directory.Packages.props | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 3e1cfba..c1f64e2 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -7,11 +7,11 @@ - + - - + + - + \ No newline at end of file From c09221d45a4cea03ad56e6c36237b1ea8c23b06f Mon Sep 17 00:00:00 2001 From: rameel Date: Wed, 9 Jul 2025 15:16:00 +0500 Subject: [PATCH 3/4] Update README.md --- README.md | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index a192d6d..c719657 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,10 @@ +# Ramstack.FileProviders +[![NuGet](https://img.shields.io/nuget/v/Ramstack.FileProviders.svg)](https://nuget.org/packages/Ramstack.FileProviders) +[![MIT](https://img.shields.io/github/license/rameel/ramstack.fileproviders)](https://github.com/rameel/ramstack.fileproviders/blob/main/LICENSE) + +`Ramstack.FileProviders` is a collection of lightweight .NET libraries that enhance file handling capabilities in .NET applications, +building upon `Microsoft.Extensions.FileProviders`. + * [Ramstack.FileProviders](#ramstackfileproviders) * [Projects](#projects) @@ -22,10 +29,6 @@ * [License](#license) -# Ramstack.FileProviders - -`Ramstack.FileProviders` is a collection of lightweight .NET libraries that enhance file handling capabilities in .NET applications, -building upon `Microsoft.Extensions.FileProviders`. ## Projects From 8caf780ab2da3465c5a79bffe1c07933e975a229 Mon Sep 17 00:00:00 2001 From: rameel Date: Wed, 9 Jul 2025 15:22:12 +0500 Subject: [PATCH 4/4] Nit: Use AsSpan instead of Substring --- src/Ramstack.FileProviders/PrefixedFileProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ramstack.FileProviders/PrefixedFileProvider.cs b/src/Ramstack.FileProviders/PrefixedFileProvider.cs index 83dd9ac..a63280a 100644 --- a/src/Ramstack.FileProviders/PrefixedFileProvider.cs +++ b/src/Ramstack.FileProviders/PrefixedFileProvider.cs @@ -104,7 +104,7 @@ public void Dispose() => if (path.StartsWith(prefix, StringComparison.Ordinal)) if ((uint)prefix.Length < (uint)path.Length) if (path[prefix.Length] == '/') - return path[prefix.Length..]; + return new string(path.AsSpan(prefix.Length)); return null; }