Gets the last written timestamp of the file
| 99 | |
| 100 | // Gets the last written timestamp of the file |
| 101 | uint64 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 |
| 111 | std::string ReadFileAsString(const wchar* filePath) |
no test coverage detected