| 170 | } |
| 171 | |
| 172 | auto CUtility::GetFileExtension(const std::wstring& fileName) -> std::wstring |
| 173 | { |
| 174 | std::wstring retVal; |
| 175 | |
| 176 | std::filesystem::path pathObj(fileName); |
| 177 | |
| 178 | // Check if file has stem i.e. filename without extension |
| 179 | if (pathObj.has_stem()) |
| 180 | { |
| 181 | retVal = pathObj.filename().extension().wstring(); |
| 182 | } |
| 183 | return retVal; |
| 184 | } |
| 185 | |
| 186 | auto CUtility::GetTempFilePath() -> std::wstring |
| 187 | { |