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

Method getFiles

src/shared/filesorigin.cpp:47–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47std::vector<FileEntryPtr> FilesOrigin::getFiles() const
48{
49 std::vector<FileEntryPtr> result;
50
51 {
52 std::scoped_lock lock(m_Mutex);
53
54 for (FileIndex fileIdx : m_Files) {
55 if (FileEntryPtr p = m_FileRegister.lock()->getFile(fileIdx)) {
56 result.push_back(p);
57 }
58 }
59 }
60
61 return result;
62}
63
64FileEntryPtr FilesOrigin::findFile(FileIndex index) const
65{

Callers 9

doPopulateMethod · 0.45
updateBSAListMethod · 0.45
refreshMethod · 0.45
findFilesMethod · 0.45
findFileInfosMethod · 0.45
fileMappingMethod · 0.45
doConflictCheckMethod · 0.45
isRedundantMethod · 0.45
updateMethod · 0.45

Calls 2

getFileMethod · 0.80
lockMethod · 0.80

Tested by

no test coverage detected