| 534 | |
| 535 | |
| 536 | bool Foam::isDir(const fileName& name, const bool followLink) |
| 537 | { |
| 538 | if (POSIX::debug) |
| 539 | { |
| 540 | Pout<< FUNCTION_NAME << " : name:" << name << endl; |
| 541 | if ((POSIX::debug & 2) && !Pstream::master()) |
| 542 | { |
| 543 | error::printStack(Pout); |
| 544 | } |
| 545 | } |
| 546 | return S_ISDIR(mode(name, followLink)); |
| 547 | } |
| 548 | |
| 549 | |
| 550 | bool Foam::isFile |