<PackageReference Include="Microsoft.Extensions.FileProviders.Physical" Version="11.0.0-preview.6.26359.118" />

Microsoft.Extensions.FileProviders.PhysicalFileProvider

public class PhysicalFileProvider : IFileProvider, IDisposable
Looks up files using the on-disk file system.
namespace Microsoft.Extensions.FileProviders { public class PhysicalFileProvider : IFileProvider, IDisposable { public bool UsePollingFileWatcher { get; set; } public bool UseActivePolling { get; set; } public string Root { get; } public PhysicalFileProvider(string root); public PhysicalFileProvider(string root, ExclusionFilters filters); public void Dispose(); protected virtual void Dispose(bool disposing); public IFileInfo GetFileInfo(string subpath); public IDirectoryContents GetDirectoryContents(string subpath); public IChangeToken Watch(string filter); } }