MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / lastModified

Method lastModified

src/Base/FileInfo.cpp:448–458  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448TimeInfo FileInfo::lastModified() const
449{
450 TimeInfo ti = TimeInfo::null();
451
452 if (exists()) {
453 fs::path path = stringToPath(FileName);
454 ti.setTime_t(to_time_t(fs::last_write_time(path)));
455 }
456
457 return ti;
458}
459
460bool FileInfo::deleteFile() const
461{

Callers 11

applyStandardMethod · 0.80
applyTimeStampMethod · 0.80
fileComparisonByDateMethod · 0.80
getRecoveryInfoMethod · 0.80
checkTimestampMethod · 0.80
openMethod · 0.80
saveFileMethod · 0.80
useCachedThumbnailMethod · 0.80
getCacheKeyMethod · 0.80
TEST_FFunction · 0.80

Calls 2

setTime_tMethod · 0.80
to_time_tFunction · 0.70

Tested by

no test coverage detected