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
IsDirectory
True for the case TryGetDirectoryContents has enumerated a sub-directory
bool IsDirectory { get; }
Property Value
LastModified
When the file was last modified
DateTimeOffset LastModified { get; }
Property Value
Length
The length of the file in bytes, or -1 for a directory or non-existing files.
long Length { get; }
Property Value
Name
The name of the file or directory, not including any path.
string Name { get; }
Property Value
PhysicalPath
The path to the file, including the file name. Return null if the file is not directly accessible.
string PhysicalPath { get; }
Property Value
Methods
CreateReadStream()
Return file contents as readonly stream. Caller should dispose stream when complete.
Stream CreateReadStream()
Returns
- Stream
The file stream