Returns the extension of the file path
| 92 | |
| 93 | // Returns the extension of the file path |
| 94 | std::wstring GetFileExtension(const wchar* filePath_) |
| 95 | { |
| 96 | Assert_(filePath_); |
| 97 | |
| 98 | std::wstring filePath(filePath_); |
| 99 | size_t idx = filePath.rfind(L'.'); |
| 100 | if (idx != std::wstring::npos) |
| 101 | return filePath.substr(idx + 1, filePath.length() - idx - 1); |
| 102 | else |
| 103 | return std::wstring(L""); |
| 104 | } |
| 105 | |
| 106 | // Gets the last written timestamp of the file |
| 107 | uint64 GetFileTimestamp(const wchar* filePath) |
no test coverage detected