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

Function CheckDirectory

src/SharedFileList.cpp:416–425  ·  view source on GitHub ↗

Checks if the dir a is the same as b. If they are, then logs the message and returns true.

Source from the content-addressed store, hash-verified

414
415// Checks if the dir a is the same as b. If they are, then logs the message and returns true.
416static bool CheckDirectory(const wxString& a, const CPath& b)
417{
418 if (CPath(a).IsSameDir(b)) {
419 AddLogLineC(CFormat( _("ERROR: Attempted to share %s") ) % a);
420
421 return true;
422 }
423
424 return false;
425}
426
427
428unsigned CSharedFileList::AddFilesFromDirectory(const CPath& directory, TaskList & hashTasks,

Callers 1

AddFilesFromDirectoryMethod · 0.85

Calls 3

CFormatClass · 0.85
IsSameDirMethod · 0.80
CPathClass · 0.70

Tested by

no test coverage detected