Table of Contents

Class PhysicalDirectoryInfo

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

Represents a directory on a physical filesystem

public class PhysicalDirectoryInfo : IFileInfo
Inheritance
PhysicalDirectoryInfo
Implements
Inherited Members

Constructors

PhysicalDirectoryInfo(DirectoryInfo)

Initializes an instance of PhysicalDirectoryInfo that wraps an instance of DirectoryInfo

public PhysicalDirectoryInfo(DirectoryInfo info)

Parameters

info DirectoryInfo

The directory

Properties

Exists

True if resource exists in the underlying storage system.

public bool Exists { get; }

Property Value

bool

IsDirectory

Always true.

public bool IsDirectory { get; }

Property Value

bool

LastModified

The time when the directory was last written to.

public DateTimeOffset LastModified { get; }

Property Value

DateTimeOffset

Length

Always equals -1.

public long Length { get; }

Property Value

long

Name

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

public 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.

public string PhysicalPath { get; }

Property Value

string

Methods

CreateReadStream()

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

public Stream CreateReadStream()

Returns

Stream

Never returns

Exceptions

InvalidOperationException

Always thrown