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

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 an instance of NotFoundFileInfo.

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