<PackageReference Include="Microsoft.Extensions.FileProviders.Physical" Version="11.0.0-rc.1.26425.128" />

Microsoft.Extensions.FileProviders.Physical.PhysicalDirectoryInfo

public class PhysicalDirectoryInfo : IFileInfo, IDirectoryContents, IEnumerable<IFileInfo>, IEnumerable
Represents a directory on a physical file system.
public bool Exists { get; }

public bool IsDirectory { get; }

Gets a value that's always true.

public DateTimeOffset LastModified { get; }

Gets the time when the directory was last written to.

public long Length { get; }

Gets a value that's always -1.

public string Name { get; }

public string PhysicalPath { get; }

Initializes a new instance of the PhysicalDirectoryInfo class that wraps an instance of DirectoryInfo.

Always throws an exception because read streams are not support on directories.

public IEnumerator<IFileInfo> GetEnumerator()