Gets the last written timestamp of the file
| 105 | |
| 106 | // Gets the last written timestamp of the file |
| 107 | uint64 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 |
| 117 | std::string ReadFileAsString(const wchar* filePath) |
no test coverage detected