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

Method canUseRobocopy

FastCopy/RobocopyViewModel.cpp:321–328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

319 }
320
321 bool RobocopyViewModel::canUseRobocopy() const
322 {
323 std::filesystem::path sourcePath{ **m_iter };
324 auto const fileName = sourcePath.filename().wstring();
325 return !std::filesystem::exists(
326 std::format(LR"({}\{})", m_destination.data(), fileName)
327 ) || sourcePath.parent_path() == std::filesystem::path{ m_destination.data() };
328 }
329 bool RobocopyViewModel::canUseShellCopy() const
330 {
331 return m_recordFile->GetOperation() == CopyOperation::Move &&

Callers

nothing calls this directly

Calls 1

dataMethod · 0.80

Tested by

no test coverage detected