| 241 | |
| 242 | |
| 243 | File * |
| 244 | File::getFile(const char *filename) |
| 245 | { |
| 246 | if (isDirectory == false) |
| 247 | return 0; |
| 248 | |
| 249 | if (strcmp(filename, "..") == 0) |
| 250 | return this->getParentDir(); |
| 251 | |
| 252 | if (strcmp(filename, ".") == 0) |
| 253 | return this; |
| 254 | |
| 255 | map<string, File *>::iterator theMapObject = dirFiles.find(filename); |
| 256 | if (theMapObject == dirFiles.end()) |
| 257 | return 0; |
| 258 | else |
| 259 | return theMapObject->second; |
| 260 | |
| 261 | } |
| 262 | |
| 263 | FileIter |
| 264 | File::getFiles(void) |
no test coverage detected