Table of Contents

Interface IFileInfo

Namespace
Acuit.Pinpoint.FileProviders
Assembly
Acuit.Pinpoint.Configuration.dll

Represents a file in the given file provider.

public interface IFileInfo

Properties

Exists

True if resource exists in the underlying storage system.

bool Exists { get; }

Property Value

bool

IsDirectory

True for the case TryGetDirectoryContents has enumerated a sub-directory

bool IsDirectory { get; }

Property Value

bool

LastModified

When the file was last modified

DateTimeOffset LastModified { get; }

Property Value

DateTimeOffset

Length

The length of the file in bytes, or -1 for a directory or non-existing files.

long Length { get; }

Property Value

long

Name

The name of the file or directory, not including any path.

string Name { get; }

Property Value

string

PhysicalPath

The path to the file, including the file name. Return null if the file is not directly accessible.

string PhysicalPath { get; }

Property Value

string

Methods

CreateReadStream()

Return file contents as readonly stream. Caller should dispose stream when complete.

Stream CreateReadStream()

Returns

Stream

The file stream