| 259 | } |
| 260 | |
| 261 | std::filesystem::path getTempFilePath() |
| 262 | { |
| 263 | static std::mutex mutex; |
| 264 | std::lock_guard<std::mutex> guard(mutex); |
| 265 | char* name = std::tmpnam(nullptr); |
| 266 | if (name == nullptr) |
| 267 | { |
| 268 | FALCOR_THROW("Failed to create temporary file path."); |
| 269 | } |
| 270 | return name; |
| 271 | } |
| 272 | |
| 273 | std::string readFile(const std::filesystem::path& path) |
| 274 | { |
no outgoing calls
no test coverage detected