<PackageReference Include="Microsoft.Extensions.FileProviders.Abstractions" Version="11.0.0-preview.4.26230.115" />

Microsoft.Extensions.FileProviders.NotFoundFileInfo

public class NotFoundFileInfo : IFileInfo
Represents a nonexistent file.
public bool Exists { get; }

Gets a value that's always false.

public bool IsDirectory { get; }

Gets a value that's always false.

public DateTimeOffset LastModified { get; }

Gets MinValue.

public long Length { get; }

Gets a value that's always -1.

public string Name { get; }

public string PhysicalPath { get; }

Gets a value that's always null.

public NotFoundFileInfo(string name)

Initializes a new instance of the NotFoundFileInfo class.

Always throws. A stream cannot be created for a nonexistent file.