MCPcopy Create free account
hub / github.com/Illation/ETEngine / RecursiveMount

Method RecursiveMount

Engine/source/EtCore/FileSystem/Entry.cpp:457–469  ·  view source on GitHub ↗

--------------------------------- Directory::RecursiveMount Recursively mount all subdirectories

Source from the content-addressed store, hash-verified

455// Recursively mount all subdirectories
456//
457void Directory::RecursiveMount()
458{
459 for (auto c : m_pChildren)
460 {
461 if (c->GetType() == Entry::EntryType::ENTRY_DIRECTORY)
462 {
463 if (c->GetName() != "../" && c->GetName() != "./")
464 {
465 static_cast<Directory*>(c)->Mount(true);
466 }
467 }
468 }
469}
470
471//---------------------------------
472// Directory::GetMountedChildRecursive

Callers

nothing calls this directly

Calls 3

GetNameMethod · 0.80
GetTypeMethod · 0.45
MountMethod · 0.45

Tested by

no test coverage detected