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

Function CopyAddSuffix

FastCopy/Fallback.cpp:41–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

39 }
40
41 void CopyAddSuffix(std::filesystem::path const& source, std::filesystem::path const& destination, bool isMove)
42 {
43 bool error = false;
44 if (std::filesystem::is_directory(source))
45 error = copyFolderAddSuffixImpl(source, destination);
46 else
47 error = copyFileAddSuffixImpl(source, destination);
48
49 if (!error && isMove)
50 std::filesystem::remove_all(source);
51 }
52}

Callers 1

ConfirmDuplicatesMethod · 0.85

Calls 2

copyFolderAddSuffixImplFunction · 0.85
copyFileAddSuffixImplFunction · 0.85

Tested by

no test coverage detected