MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / exists

Function exists

src/OSspecific/POSIX/POSIX.C:516–533  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

514
515
516bool Foam::exists
517(
518 const fileName& name,
519 const bool checkGzip,
520 const bool followLink
521)
522{
523 if (POSIX::debug)
524 {
525 Pout<< FUNCTION_NAME << " : name:" << name << " checkGzip:" << checkGzip
526 << endl;
527 if ((POSIX::debug & 2) && !Pstream::master())
528 {
529 error::printStack(Pout);
530 }
531 }
532 return mode(name, followLink) || isFile(name, checkGzip, followLink);
533}
534
535
536bool Foam::isDir(const fileName& name, const bool followLink)

Callers 10

cpFunction · 0.70
lnFunction · 0.70
mvBakFunction · 0.70
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
updateFoamMeshFunction · 0.50
readFunction · 0.50
triSurfaceMesh.CFile · 0.50
combineFunction · 0.50

Calls 3

printStackFunction · 0.70
modeFunction · 0.70
isFileFunction · 0.70

Tested by

no test coverage detected