| 514 | |
| 515 | |
| 516 | bool 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 | |
| 536 | bool Foam::isDir(const fileName& name, const bool followLink) |
no test coverage detected