| 13 | |
| 14 | namespace { |
| 15 | std::string MakeFilePath(const std::string_view& filename) { |
| 16 | try { |
| 17 | path temp_path = temp_directory_path(); |
| 18 | temp_path.append("test"); |
| 19 | temp_path.append("iostreams"); |
| 20 | create_directories(temp_path); |
| 21 | |
| 22 | temp_path.append(filename); |
| 23 | remove(temp_path); |
| 24 | return temp_path.string(); |
| 25 | } catch( const std::exception& err) { |
| 26 | std::cout << "Error: " << err.what() << std::endl; |
| 27 | } |
| 28 | return {}; |
| 29 | } |
| 30 | } |
| 31 | |
| 32 | namespace mdf::test { |