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

Method Run

SpeedTest/RobocopyTest.cpp:7–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5
6std::wstring const RobocopyTest::ApplicationName = Env::GetFolderPath(Env::SpecialFolder::System32) + L"\\robocopy.exe";
7bool RobocopyTest::Run(std::vector<TestOperation> const& paths)
8{
9 std::vector<Process<wchar_t>> processes;
10 for (auto const& item : paths)
11 {
12 processes.push_back(
13 Process<wchar_t>{
14 ApplicationName,
15 item.operation == TestOperation::Operation::Copy?
16 std::format(LR"("{}" "{}" /E /MT:64)", item.source, item.destination) :
17 std::format(LR"("{}" "{}" /E /MT:64 /MOVE)", item.source, item.destination)
18 }
19 );
20 }
21 WaitForAllProcesses<wchar_t>(processes);
22 return true;
23}
24
25std::string RobocopyTest::GetName() const
26{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected