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

Method IsShared

src/SharedFileList.cpp:1398–1418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1396
1397
1398bool CSharedFileList::IsShared(const CPath& path) const
1399{
1400 if( path.IsDir(CPath::exists) ) {
1401 // check if it's a shared folder
1402 const unsigned folderCount = theApp->glob_prefs->shareddir_list.size();
1403 for (unsigned i = 0; i < folderCount; ++i) {
1404 if (path.IsSameDir(theApp->glob_prefs->shareddir_list[i])) {
1405 return true;
1406 }
1407 }
1408
1409 // check if it's one of the categories folders (category 0 = incoming)
1410 for (unsigned i = 0; i < theApp->glob_prefs->GetCatCount(); ++i) {
1411 if (path.IsSameDir(theApp->glob_prefs->GetCategory(i)->path)) {
1412 return true;
1413 }
1414 }
1415 }
1416
1417 return false;
1418}
1419
1420
1421void CSharedFileList::CheckAICHHashes(const std::list<CAICHHash>& hashes)

Callers 1

Calls 5

IsDirMethod · 0.80
IsSameDirMethod · 0.80
GetCatCountMethod · 0.80
sizeMethod · 0.45
GetCategoryMethod · 0.45

Tested by

no test coverage detected