MCPcopy Create free account
hub / github.com/TheAssassin/AppImageLauncher / getMTime

Function getMTime

src/shared/shared.cpp:1100–1108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1098}
1099
1100time_t getMTime(const QString& path) {
1101 struct stat st{};
1102 if (stat(path.toStdString().c_str(), &st) != 0) {
1103 displayError(QObject::tr("Failed to call stat() on path:\n\n%1").arg(path));
1104 return -1;
1105 }
1106
1107 return st.st_mtim.tv_sec;
1108}
1109
1110bool desktopFileHasBeenUpdatedSinceLastUpdate(const QString& pathToAppImage) {
1111 const auto ownBinaryPath = getOwnBinaryPath();

Calls 2

displayErrorFunction · 0.85
statClass · 0.70

Tested by

no test coverage detected