Cuemon.Extensions.FileProviders.Physical
10.7.0
Prefix Reserved
See the version list below for details.
dotnet add package Cuemon.Extensions.FileProviders.Physical --version 10.7.0
NuGet\Install-Package Cuemon.Extensions.FileProviders.Physical -Version 10.7.0
<PackageReference Include="Cuemon.Extensions.FileProviders.Physical" Version="10.7.0" />
<PackageVersion Include="Cuemon.Extensions.FileProviders.Physical" Version="10.7.0" />
<PackageReference Include="Cuemon.Extensions.FileProviders.Physical" />
paket add Cuemon.Extensions.FileProviders.Physical --version 10.7.0
#r "nuget: Cuemon.Extensions.FileProviders.Physical, 10.7.0"
#:package Cuemon.Extensions.FileProviders.Physical@10.7.0
#addin nuget:?package=Cuemon.Extensions.FileProviders.Physical&version=10.7.0
#tool nuget:?package=Cuemon.Extensions.FileProviders.Physical&version=10.7.0
Cuemon.Extensions.FileProviders.Physical for .NET
About
Cuemon.Extensions.FileProviders.Physical adds PortablePhysicalFileProvider, a physical file-system-backed IFileProvider for applications that need case-insensitive path lookups across operating systems.
It decorates PhysicalFileProvider, resolves file and directory segments using ordinal, case-insensitive matching, and preserves the physical casing reported by the file system when returning file info, directory contents, and change tokens.
Successful lookups are cached for the lifetime of the provider by using case-insensitive logical keys that normalize supported directory separators together with redundant leading and repeated separators. Equivalent requests such as assets/logo.svg, /assets/logo.svg, and assets//logo.svg therefore share the same successful cache entry.
Supported Frameworks
This package targets .NET 10, .NET 9, and .NET Standard 2.0.
Why Pick This Package
- Built on
Microsoft.Extensions.FileProviders.Physicaland exposed through the familiarIFileProviderabstraction - Resolves file and directory paths case-insensitively, including nested segments
- Treats ambiguous case collisions as not found instead of selecting an arbitrary file or directory
- Preserves
PhysicalFileProviderbehavior for exclusion filters, polling options, and wildcard watch filters
Installation
dotnet add package Cuemon.Extensions.FileProviders.Physical
Quick Start
using Cuemon.Extensions.FileProviders;
var contentRoot = @"C:\app\wwwroot";
using var files = new PortablePhysicalFileProvider(contentRoot);
var logo = files.GetFileInfo("assets/images/logo.svg");
if (logo.Exists)
{
Console.WriteLine(logo.Name);
Console.WriteLine(logo.PhysicalPath);
}
var images = files.GetDirectoryContents("ASSETS/IMAGES");
var changeToken = files.Watch("assets/images/logo.svg");
If the physical file system contains Assets/Images/Logo.svg, the lookup above still resolves it. If the same logical path maps to multiple physical entries that differ only by casing, such as logo.svg and Logo.svg, the provider returns not-found results and a null change token for literal watch filters instead of choosing one entry.
Performance Model
- Successful resolved paths are cached, so subsequent successful lookups avoid repeated path traversal.
- Uncached resolution enumerates each directory needed to resolve the requested path.
- A segment must be fully inspected to prove uniqueness or detect a case-insensitive collision, so cold lookup cost grows with directory width.
- A cold path lookup is therefore approximately proportional to the sum of the sibling counts in the traversed directories.
- Misses and collisions are deliberately not cached and are re-evaluated on every call.
- Repeated unresolved requests in wide directories can be substantially more expensive than successful cache hits.
- If arbitrary user-controlled paths reach this provider, consider upstream validation, response caching, rate limiting, or similar controls.
- Previously successful logical paths retain the provider's stable-topology cache behavior for the lifetime of the provider instance.
Documentation
API documentation for Cuemon packages is published at docs.cuemon.net.
Contributing
Contributions and issue reports are welcome in the codebeltnet/cuemon repository.
License
Licensed under the MIT License.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
| .NET Core | netcoreapp2.0 was computed. netcoreapp2.1 was computed. netcoreapp2.2 was computed. netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.0 is compatible. netstandard2.1 was computed. |
| .NET Framework | net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
| MonoAndroid | monoandroid was computed. |
| MonoMac | monomac was computed. |
| MonoTouch | monotouch was computed. |
| Tizen | tizen40 was computed. tizen60 was computed. |
| Xamarin.iOS | xamarinios was computed. |
| Xamarin.Mac | xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETStandard 2.0
- Cuemon.Kernel (>= 10.7.0)
- Microsoft.Extensions.FileProviders.Physical (>= 10.0.11)
-
net10.0
- Cuemon.Kernel (>= 10.7.0)
- Microsoft.Extensions.FileProviders.Physical (>= 10.0.11)
-
net9.0
- Cuemon.Kernel (>= 10.7.0)
- Microsoft.Extensions.FileProviders.Physical (>= 9.0.19)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Cuemon.Extensions.FileProviders.Physical:
| Package | Downloads |
|---|---|
|
Cuemon.Core.App
Provides a convenient set of default API additions for building a .NET application. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 11.0.0-preview.6 | 49 | 8/12/2026 |
| 10.7.0 | 151 | 8/12/2026 |
| 10.6.0 | 433 | 8/7/2026 |
Version: 10.7.0
Availability: .NET 10, .NET 9 and .NET Standard 2.0
# ALM
- CHANGED Dependencies have been upgraded to the latest compatible versions for all supported target frameworks (TFMs)
Version: 10.6.0
Availability: .NET 10, .NET 9 and .NET Standard 2.0
# ALM
- CHANGED Dependencies have been upgraded to the latest compatible versions for all supported target frameworks (TFMs)
# New Features
- ADDED PortablePhysicalFileProvider class providing portable, case-insensitive file path resolution with intelligent path normalization, built-in caching for successful lookups, and collision detection across supported target frameworks