diff --git a/Directory.Packages.props b/Directory.Packages.props index fed12e0..c1f64e2 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -7,11 +7,11 @@ - + - - - + + + - + \ No newline at end of file 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 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; }