| 592 | |
| 593 | |
| 594 | time_t Foam::lastModified(const fileName& name, const bool followLink) |
| 595 | { |
| 596 | if (POSIX::debug) |
| 597 | { |
| 598 | Pout<< FUNCTION_NAME << " : name:" << name << endl; |
| 599 | if ((POSIX::debug & 2) && !Pstream::master()) |
| 600 | { |
| 601 | error::printStack(Pout); |
| 602 | } |
| 603 | } |
| 604 | fileStat fileStatus(name, followLink); |
| 605 | if (fileStatus.isValid()) |
| 606 | { |
| 607 | return fileStatus.status().st_mtime; |
| 608 | } |
| 609 | else |
| 610 | { |
| 611 | return 0; |
| 612 | } |
| 613 | } |
| 614 | |
| 615 | |
| 616 | double Foam::highResLastModified(const fileName& name, const bool followLink) |
nothing calls this directly
no test coverage detected