Gets the last written timestamp of the file
| 132 | |
| 133 | // Gets the last written timestamp of the file |
| 134 | uint64 GetFileTimestamp(const wchar* filePath) |
| 135 | { |
| 136 | Assert_(filePath); |
| 137 | |
| 138 | WIN32_FILE_ATTRIBUTE_DATA attributes; |
| 139 | Win32Call(GetFileAttributesEx(filePath, GetFileExInfoStandard, &attributes)); |
| 140 | return attributes.ftLastWriteTime.dwLowDateTime | (uint64(attributes.ftLastWriteTime.dwHighDateTime) << 32); |
| 141 | } |
| 142 | |
| 143 | // Returns the contents of a file as a string |
| 144 | std::string ReadFileAsString(const wchar* filePath) |
no test coverage detected