| 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 | } |
no test coverage detected