13 const auto temp_dir = std::filesystem::temp_directory_path();
14 auto temp_full_path = temp_dir;
16 temp_full_path /= fileName;
21 if (std::filesystem::is_directory(temp_dir)) {
25 throw std::invalid_argument(
"failed to load temp directory: " + temp_dir.generic_string());
29 if (std::filesystem::is_regular_file(
m_full_path)) {