MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / GetFileLastEditTime

Method GetFileLastEditTime

Source/Engine/Platform/Unix/UnixFileSystem.cpp:450–461  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450DateTime UnixFileSystem::GetFileLastEditTime(const StringView& path)
451{
452 struct stat fileInfo;
453 const UnixString pathANSI(*path, path.Length());
454 if (stat(pathANSI.Get(), &fileInfo) == -1)
455 {
456 return DateTime::MinValue();
457 }
458
459 const TimeSpan timeSinceEpoch(0, 0, 0, fileInfo.st_mtime);
460 return UnixEpoch + timeSinceEpoch;
461}
462
463#endif

Callers

nothing calls this directly

Calls 4

MinValueFunction · 0.85
statClass · 0.70
LengthMethod · 0.45
GetMethod · 0.45

Tested by

no test coverage detected