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

Function GetFileTimestamp

Shadows/SampleFramework11/FileIO.cpp:101–108  ·  view source on GitHub ↗

Gets the last written timestamp of the file

Source from the content-addressed store, hash-verified

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

Callers 1

UpdateShadersFunction · 0.85

Calls 1

Win32CallFunction · 0.85

Tested by

no test coverage detected