Table of Contents

Interface IFileSystemEntry

Namespace
DirectoryToObject
Assembly
DirectoryToObject.dll

Abstraction of a file system entry. This is a subset of the interface provided by FileSystemInfo that can be implemented regardless of whether the file system is local, remote, or not a file system at all.

public interface IFileSystemEntry

Properties

CreationTimeUtc

The creation time, in Coordinated Universal Time (UTC), of the file or directory if it is known.

DateTime CreationTimeUtc { get; }

Property Value

DateTime

Extension

The extension of this file or directory entry, including the leading dot. If the file or directory name starts with a dot, the extension is equal to the name.

string Extension { get; }

Property Value

string

IsDirectory

true if this entry is a directory, false if it is a file.

bool IsDirectory { get; }

Property Value

bool

LastWriteTimeUtc

The time, in Coordinated Universal Time (UTC), when the file or directory was last written to.

DateTime LastWriteTimeUtc { get; }

Property Value

DateTime

Name

The name of this file or directory entry, including the extension.

string Name { get; }

Property Value

string