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

Function readFileModificationTime

src/daemon/main.cpp:28–32  ·  view source on GitHub ↗

* Read the modification time of the file pointed by * @param filePath * @return file modification time */

Source from the content-addressed store, hash-verified

26 * @return file modification time
27 */
28long readFileModificationTime(char* filePath) {
29 struct stat attrib = {0x0};
30 stat(filePath, &attrib);
31 return attrib.st_ctime;
32}
33
34/**
35 * Monitors whether the application binary has changed since the process was started. In such case the application

Callers 1

Calls 1

statClass · 0.70

Tested by

no test coverage detected