| 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 && |