MCPcopy Create free account
hub / github.com/HO-COOH/FastCopy / CreateSourceAndDestinationFolder

Method CreateSourceAndDestinationFolder

SpeedTest/Config.cpp:10–16  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8}
9
10void 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}

Callers 1

operator()Method · 0.80

Calls

no outgoing calls

Tested by 1

operator()Method · 0.64