| 665 | } |
| 666 | |
| 667 | bool SFTPClient::removeFile(const std::string& path) { |
| 668 | if (libssh2_sftp_unlink(sftp_session_, path.c_str()) != 0) { |
| 669 | last_error_.setLibssh2Error(libssh2_sftp_last_error(sftp_session_)); |
| 670 | logger_->log_error("Failed to remove remote file \"%s\", error: %s", path.c_str(), sftp_strerror(last_error_)); |
| 671 | return false; |
| 672 | } |
| 673 | return true; |
| 674 | } |
| 675 | |
| 676 | bool SFTPClient::removeDirectory(const std::string& path) { |
| 677 | if (libssh2_sftp_rmdir(sftp_session_, path.c_str()) != 0) { |
no test coverage detected