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

Method getFullPath

src/shared/fileentry.cpp:208–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206}
207
208std::wstring FileEntry::getFullPath(OriginID originID) const
209{
210 std::scoped_lock lock(m_OriginsMutex);
211
212 if (originID == InvalidOriginID) {
213 bool ignore = false;
214 originID = getOrigin(ignore);
215 }
216
217 // base directory for origin
218 const auto* o = m_Parent->findOriginByID(originID);
219 if (!o) {
220 return {};
221 }
222
223 std::wstring result = o->getPath();
224
225 // all intermediate directories
226 recurseParents(result, m_Parent);
227
228 return result + L"\\" + m_Name;
229}
230
231std::wstring FileEntry::getRelativePath() const
232{

Callers 9

updateFileItemMethod · 0.80
refreshMethod · 0.80
showShellMenuMethod · 0.80
addFileMenusMethod · 0.80
addOpenMenusMethod · 0.80
resolvePathMethod · 0.80
findFilesMethod · 0.80
findFileInfosMethod · 0.80

Calls 1

findOriginByIDMethod · 0.80

Tested by

no test coverage detected