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

Function isFile

src/OSspecific/POSIX/POSIX.C:550–569  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

548
549
550bool Foam::isFile
551(
552 const fileName& name,
553 const bool checkGzip,
554 const bool followLink
555)
556{
557 if (POSIX::debug)
558 {
559 Pout<< FUNCTION_NAME << " : name:" << name << " checkGzip:" << checkGzip
560 << endl;
561 if ((POSIX::debug & 2) && !Pstream::master())
562 {
563 error::printStack(Pout);
564 }
565 }
566 return
567 S_ISREG(mode(name, followLink))
568 || (checkGzip && S_ISREG(mode(name + ".gz", followLink)));
569}
570
571
572off_t Foam::fileSize(const fileName& name, const bool followLink)

Callers 14

existsFunction · 0.70
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
mainFunction · 0.50
triSurface.CFile · 0.50
readSTLBINARYFunction · 0.50
readFunction · 0.50
removeFileFunction · 0.50
executeFunction · 0.50

Calls 2

printStackFunction · 0.70
modeFunction · 0.70

Tested by

no test coverage detected