Show / Hide Table of Contents

Class FileTree

Contains file infos of this and descendant folders and files retrieved by filesystem.enumerate. Can print a formatted list of descendant sizes.

public class FileTree : TreeBase<FileTree>

Namespace: Au.More
Assembly: Au.dll
Inheritance
object
TreeBase<FileTree>
FileTree
Inherited Members
TreeBase<FileTree>.Parent
TreeBase<FileTree>.RootAncestor
TreeBase<FileTree>.Level
TreeBase<FileTree>.IsDescendantOf(FileTree)
TreeBase<FileTree>.IsDescendantOf(Func<FileTree, bool>)
TreeBase<FileTree>.IsAncestorOf(FileTree)
TreeBase<FileTree>.HasParent
TreeBase<FileTree>.HasChildren
TreeBase<FileTree>.LastChild
TreeBase<FileTree>.FirstChild
TreeBase<FileTree>.Next
TreeBase<FileTree>.Previous
TreeBase<FileTree>.Index
TreeBase<FileTree>.AddChild(FileTree, bool)
TreeBase<FileTree>.AddSibling(FileTree, bool)
TreeBase<FileTree>.Remove()
TreeBase<FileTree>.Ancestors(bool, bool)
TreeBase<FileTree>.AncestorsFromRoot(bool, bool)
TreeBase<FileTree>.Children(bool)
TreeBase<FileTree>.Count
TreeBase<FileTree>.Descendants(bool, Func<FileTree, bool>)
TreeBase<FileTree>.XmlLoad(string, TreeBase<FileTree>.XmlNodeReader)
TreeBase<FileTree>.XmlLoad(XmlReader, TreeBase<FileTree>.XmlNodeReader)
TreeBase<FileTree>.XmlSave(string, TreeBase<FileTree>.XmlNodeWriter, XmlWriterSettings, IEnumerable<FileTree>)
TreeBase<FileTree>.XmlSave(XmlWriter, TreeBase<FileTree>.XmlNodeWriter, IEnumerable<FileTree>)

Properties

Name Description
Info

Gets the info retrieved by filesystem.enumerate.

IsDirectory

It is a directory. Or a NTFS link to a directory (see FEFile.IsNtfsLink).

Name

Filename.

Path

Full path.

Size

Gets the file size. If directory, it's the sum of all descendant file sizes.

Methods

Name Description
Create(string, bool, long, bool, bool, Func<FEFile, bool>, Func<FEFile, bool>)

Calls filesystem.enumerate and creates a tree of descendants.

PrintSizes(string, bool, double, bool, bool, Func<FEFile, bool>, Func<FEFile, bool>)

Formats and prints a list of sizes and names of folder's descendant folders and optionally files, with a header.

PrintSizes(StringBuilder)

Appends to a StringBuilder a list of sizes and names of descendants, formatted for print.it, without a header.