| 90 | } |
| 91 | |
| 92 | CopyOperation TaskFile::GetOperation() const |
| 93 | { |
| 94 | switch (std::filesystem::path{ m_path.data() }.filename().wstring()[0]) |
| 95 | { |
| 96 | case L'C': return CopyOperation::Copy; |
| 97 | case L'M': return CopyOperation::Move; |
| 98 | case L'D': return CopyOperation::Delete; |
| 99 | default: |
| 100 | throw std::runtime_error{ "Invalid operation" }; |
| 101 | } |
| 102 | } |
| 103 |
no test coverage detected