MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / getModifiedTime

Method getModifiedTime

OgreMain/src/OgreZip.cpp:278–293  ·  view source on GitHub ↗

---------------------------------------------------------------------

Source from the content-addressed store, hash-verified

276 }
277 //---------------------------------------------------------------------
278 time_t ZipArchive::getModifiedTime( const String &filename )
279 {
280 // Zziplib doesn't yet support getting the modification time of individual files
281 // so just check the mod time of the zip itself
282 struct stat tagStat;
283 bool ret = ( stat( mName.c_str(), &tagStat ) == 0 );
284
285 if( ret )
286 {
287 return tagStat.st_mtime;
288 }
289 else
290 {
291 return 0;
292 }
293 }
294 //-----------------------------------------------------------------------
295 void ZipArchive::checkZzipError( int zzipError, const String &operation ) const
296 {

Callers 3

resourceModifiedTimeMethod · 0.45
loadImplMethod · 0.45
loadImplMethod · 0.45

Calls 2

statClass · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected