MCPcopy Create free account
hub / github.com/TheRealMJP/DeferredTexturing / GetFileTimestamp

Function GetFileTimestamp

SampleFramework12/v1.00/FileIO.cpp:107–114  ·  view source on GitHub ↗

Gets the last written timestamp of the file

Source from the content-addressed store, hash-verified

105
106// Gets the last written timestamp of the file
107uint64 GetFileTimestamp(const wchar* filePath)
108{
109 Assert_(filePath);
110
111 WIN32_FILE_ATTRIBUTE_DATA attributes;
112 Win32Call(GetFileAttributesEx(filePath, GetFileExInfoStandard, &attributes));
113 return attributes.ftLastWriteTime.dwLowDateTime | (uint64(attributes.ftLastWriteTime.dwHighDateTime) << 32);
114}
115
116// Returns the contents of a file as a string
117std::string ReadFileAsString(const wchar* filePath)

Callers 1

UpdateShadersFunction · 0.85

Calls 1

Win32CallFunction · 0.85

Tested by

no test coverage detected