MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / getFileMtime

Method getFileMtime

src/builtin/module_file_access.cpp:80–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 int64_t FileAccess::getFileMtime ( const string & fileName) const {
81#if !defined(DAS_NO_FILEIO)
82 struct stat st;
83 stat(fileName.c_str(), &st);
84 return st.st_mtime;
85#else
86 return -1;
87#endif
88 }
89
90 bool ModuleFileAccess::canModuleBeUnsafe ( const string & mod, const string & fileName ) const {
91 if(failed() || !moduleUnsafe) return FileAccess::canModuleBeUnsafe(mod,fileName);

Callers 2

parseDaScriptFunction · 0.80

Calls 2

statClass · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected