MCPcopy Create free account
hub / github.com/ModOrganizer2/modorganizer / removeDirRecursive

Method removeDirRecursive

src/shared/directoryentry.cpp:801–816  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

799}
800
801void DirectoryEntry::removeDirRecursive()
802{
803 while (!m_Files.empty()) {
804 m_FileRegister->removeFile(m_Files.begin()->second);
805 }
806
807 m_FilesLookup.clear();
808
809 for (DirectoryEntry* entry : m_SubDirectories) {
810 entry->removeDirRecursive();
811 delete entry;
812 }
813
814 m_SubDirectories.clear();
815 m_SubDirectoriesLookup.clear();
816}
817
818void DirectoryEntry::addDirectoryToList(DirectoryEntry* e, std::wstring nameLc)
819{

Callers 1

removeDirMethod · 0.80

Calls 4

emptyMethod · 0.45
removeFileMethod · 0.45
beginMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected