Represents a Directory entry.
DirEntry(string name, DateTime modDate, FileDirEntry[] children)
Construct a DirEntry instance.
override long Length
Retrieve the size of all children of this directory. The length is calculated on the first call and c...
override FileDirEntry[] Children
Retrieve the children of this node.
List< FileDirEntry > _children
Base class representing a File or Directory entry.
virtual long Length
The length in bytes of this entry. Directory entries are the sum of the length of all children.
virtual ? FileDirEntry[] Children
The children of this entry. Is null if the entry can never have any children (that is,...
virtual DateTime WhenModified
When this entry was last modified.
virtual FileDirTypes FileDirType
The type of this entry as represented by a value from the FileDirTypes enumeration.
FileEntry(string name, long size, DateTime modDate)