MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / getFile

Method getFile

DEVELOPER/core/File.cpp:243–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241
242
243File *
244File::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
263FileIter
264File::getFiles(void)

Callers 1

addFileMethod · 0.45

Calls 2

getParentDirMethod · 0.95
endMethod · 0.45

Tested by

no test coverage detected