Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@
<PackageVersion Include="Microsoft.Extensions.FileProviders.Abstractions" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.FileProviders.Composite" Version="6.0.0" />
<PackageVersion Include="Microsoft.Extensions.FileProviders.Physical" Version="6.0.0" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.13.0" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
<PackageVersion Include="MinVer" Version="6.0.0" />
<PackageVersion Include="NUnit" Version="4.2.2" />
<PackageVersion Include="NUnit3TestAdapter" Version="4.6.0" />
<PackageVersion Include="Ramstack.Globbing" Version="2.2.0" />
<PackageVersion Include="NUnit" Version="4.3.2" />
<PackageVersion Include="NUnit3TestAdapter" Version="5.0.0" />
<PackageVersion Include="Ramstack.Globbing" Version="2.3.1" />
</ItemGroup>
</Project>
</Project>
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -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`.

<!-- TOC -->
* [Ramstack.FileProviders](#ramstackfileproviders)
* [Projects](#projects)
Expand All @@ -22,10 +29,6 @@
* [License](#license)
<!-- TOC -->

# 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

Expand Down
2 changes: 1 addition & 1 deletion src/Ramstack.FileProviders/PrefixedFileProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down