| 78 | } |
| 79 | |
| 80 | int |
| 81 | File::addFile(File *theFile) |
| 82 | { |
| 83 | if (isDirectory == false) |
| 84 | return -1; |
| 85 | |
| 86 | if (dirFiles.find(theFile->name) == dirFiles.end()) { |
| 87 | dirFiles[theFile->name] = theFile; |
| 88 | } else |
| 89 | return -1; |
| 90 | |
| 91 | theFile->setParentDir(this); |
| 92 | return 0; |
| 93 | } |
| 94 | |
| 95 | int |
| 96 | File::addFile(const char *fileName, const char *path, const char *fileDescription) |
no test coverage detected