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
DirectoryInfoThe directory
Properties
Exists
True if resource exists in the underlying storage system.
public bool Exists { get; }
Property Value
IsDirectory
Always true.
public bool IsDirectory { get; }
Property Value
LastModified
The time when the directory was last written to.
public DateTimeOffset LastModified { get; }
Property Value
Length
Always equals -1.
public long Length { get; }
Property Value
Name
The name of the file or directory, not including any path.
public string Name { get; }
Property Value
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
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