| 614 | |
| 615 | |
| 616 | double Foam::highResLastModified(const fileName& name, const bool followLink) |
| 617 | { |
| 618 | if (POSIX::debug) |
| 619 | { |
| 620 | Pout<< FUNCTION_NAME << " : name:" << name << endl; |
| 621 | if ((POSIX::debug & 2) && !Pstream::master()) |
| 622 | { |
| 623 | error::printStack(Pout); |
| 624 | } |
| 625 | } |
| 626 | fileStat fileStatus(name, followLink); |
| 627 | if (fileStatus.isValid()) |
| 628 | { |
| 629 | return |
| 630 | fileStatus.status().st_mtime |
| 631 | + 1e-9*fileStatus.status().st_atim.tv_nsec; |
| 632 | } |
| 633 | else |
| 634 | { |
| 635 | return 0; |
| 636 | } |
| 637 | } |
| 638 | |
| 639 | |
| 640 | Foam::fileNameList Foam::readDir |
no test coverage detected