MCPcopy Create free account
hub / github.com/amule-project/amule / GetSharedFilesByDirectory

Method GetSharedFilesByDirectory

src/SharedFileList.cpp:928–942  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

926
927
928void CSharedFileList::GetSharedFilesByDirectory(const wxString& directory,
929 CKnownFilePtrList& list)
930{
931 wxMutexLocker lock(list_mut);
932
933 const CPath dir = CPath(directory);
934 for (CKnownFileMap::iterator pos = m_Files_map.begin();
935 pos != m_Files_map.end(); ++pos ) {
936 CKnownFile *cur_file = pos->second;
937
938 if (dir.IsSameDir(cur_file->GetFilePath())) {
939 list.push_back(cur_file);
940 }
941 }
942}
943
944/* ---------------- Network ----------------- */
945

Callers 1

Calls 4

IsSameDirMethod · 0.80
CPathClass · 0.70
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected