| 8 | } |
| 9 | |
| 10 | void Config::CreateSourceAndDestinationFolder() const |
| 11 | { |
| 12 | std::filesystem::create_directory(sourceFolder); |
| 13 | std::filesystem::create_directory(destinationFolder); |
| 14 | if (!std::filesystem::exists(sourceFolder) || !std::filesystem::exists(destinationFolder)) |
| 15 | throw std::runtime_error{ "Error in creating folders" }; |
| 16 | } |