MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / getFileModDate

Function getFileModDate

libs/androidfw/misc.cpp:73–81  ·  view source on GitHub ↗

* Get a file's modification date. */

Source from the content-addressed store, hash-verified

71 * Get a file's modification date.
72 */
73time_t getFileModDate(const char* fileName)
74{
75 struct stat sb;
76
77 if (stat(fileName, &sb) < 0)
78 return (time_t) -1;
79
80 return sb.st_mtime;
81}
82
83}; // namespace android

Callers 3

processFileFunction · 0.85
getMethod · 0.85
isUpToDateMethod · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected