Checks if the dir a is the same as b. If they are, then logs the message and returns true.
| 414 | |
| 415 | // Checks if the dir a is the same as b. If they are, then logs the message and returns true. |
| 416 | static 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 | |
| 428 | unsigned CSharedFileList::AddFilesFromDirectory(const CPath& directory, TaskList & hashTasks, |
no test coverage detected