///////////////////////////////////////////////////////
| 281 | |
| 282 | //////////////////////////////////////////////////////////// |
| 283 | Ftp::Response Ftp::renameFile(const std::filesystem::path& file, const std::filesystem::path& newName) |
| 284 | { |
| 285 | Response response = sendCommand("RNFR", file.string()); |
| 286 | if (response.isOk()) |
| 287 | response = sendCommand("RNTO", newName.string()); |
| 288 | |
| 289 | return response; |
| 290 | } |
| 291 | |
| 292 | |
| 293 | //////////////////////////////////////////////////////////// |