MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / GetLastModified

Function GetLastModified

src/openrct2/platform/Platform.Posix.cpp:234–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232
233 #ifndef __ANDROID__
234 uint64_t GetLastModified(std::string_view path)
235 {
236 uint64_t lastModified = 0;
237 struct stat statInfo{};
238 if (stat(std::string(path).c_str(), &statInfo) == 0)
239 {
240 lastModified = statInfo.st_mtime;
241 }
242 return lastModified;
243 }
244
245 uint64_t GetFileSize(std::string_view path)
246 {

Callers

nothing calls this directly

Calls 1

statClass · 0.70

Tested by

no test coverage detected