| 548 | |
| 549 | |
| 550 | bool 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 | |
| 572 | off_t Foam::fileSize(const fileName& name, const bool followLink) |
no test coverage detected