MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / getLastModifiedTime

Function getLastModifiedTime

src/tls.cpp:223–232  ·  view source on GitHub ↗

Given a path to a file, return the last time it was accessed (in seconds) */

Source from the content-addressed store, hash-verified

221
222/* Given a path to a file, return the last time it was accessed (in seconds) */
223time_t getLastModifiedTime(const char* path){
224 struct stat path_stat;
225 stat(path, &path_stat);
226
227#ifdef __APPLE__
228 return path_stat.st_mtimespec.tv_sec;
229#else
230 return path_stat.st_mtime;
231#endif
232}
233
234/* Create a *base* SSL_CTX using the SSL configuration provided. The base context
235 * includes everything that's common for both client-side and server-side connections.

Callers 2

tlsConfigureFunction · 0.85
tlsReloadFunction · 0.85

Calls 1

statClass · 0.70

Tested by

no test coverage detected