| 141 | |
| 142 | |
| 143 | bool copy(const std::string& srcPath, const std::string& destPath) { |
| 144 | try { |
| 145 | fs::copy(fs::u8path(srcPath), fs::u8path(destPath), fs::copy_options::recursive | fs::copy_options::overwrite_existing); |
| 146 | return true; |
| 147 | } |
| 148 | catch (fs::filesystem_error& e) { |
| 149 | return false; |
| 150 | } |
| 151 | } |
| 152 | |
| 153 | |
| 154 | bool createDirectory(const std::string& path) { |
no outgoing calls
no test coverage detected