Dir

Dir.

Constructors

this
this(Dir parent, GStats gstats)

Construct File System Root Directory.

this
this(Unpacker unpacker)

Construct from msgpack unpacker.

Members

Functions

addTreeStatsFromSub
void addTreeStatsFromSub(NotNull!F subFile, DirEntry subDent)

Append Tree Statistics.

depth
int depth()
find
File find(string name)

Scan this recursively for a non-diretory file with basename name. TODO Reuse range based algorithm this.tree(depthFirst|breadFirst)

isRoot
bool isRoot()

Return true if this is a file system root directory.

load
bool load(int depth, bool force)

Load Contents of this Directory from Disk using DirEntries.

treeContentId
const(SHA1Digest) treeContentId()
updateStats
void updateStats(NotNull!F subFile, DirEntry subDent, bool isRegFile)

Update Statistics for Sub-File sub with subDent of this Dir.

Inherited Members

From File

treeContentId
const(SHA1Digest) treeContentId()

Content Digest of Tree under this Directory.

checkObseleted
bool checkObseleted(DirEntry dent)

Check if this File has been invalidated by dent.

depth
int depth()
depthIterative
int depthIterative()

NOTE: Currently not used.

parentsUpwards
Dir[] parentsUpwards()

Get Parenting Dirs starting from parent of this upto root. Make this even more lazily evaluted.

parents
auto parents()

Get Parenting Dirs starting from file system root downto containing directory of this.

path
string path()
pathRecursive
string pathRecursive()

Meta