MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / lastModified

Function lastModified

src/OSspecific/POSIX/POSIX.C:594–613  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

592
593
594time_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
616double Foam::highResLastModified(const fileName& name, const bool followLink)

Callers

nothing calls this directly

Calls 2

isValidMethod · 0.80
printStackFunction · 0.70

Tested by

no test coverage detected