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

Method GetOperation

FastCopy/TaskFile.cpp:92–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92CopyOperation 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

Callers 5

OperationStringMethod · 0.80
ConfirmDuplicatesMethod · 0.80
getRobocopyArgMethod · 0.80
canUseShellCopyMethod · 0.80

Calls 1

dataMethod · 0.80

Tested by

no test coverage detected