| 730 | } |
| 731 | |
| 732 | bool SFTPClient::stat(const std::string& path, bool follow_symlinks, LIBSSH2_SFTP_ATTRIBUTES& result) { |
| 733 | if (libssh2_sftp_stat_ex(sftp_session_, |
| 734 | path.c_str(), |
| 735 | path.length(), |
| 736 | follow_symlinks ? LIBSSH2_SFTP_STAT : LIBSSH2_SFTP_LSTAT, |
| 737 | &result) != 0) { |
| 738 | last_error_.setLibssh2Error(libssh2_sftp_last_error(sftp_session_)); |
| 739 | logger_->log_debug("Failed to stat remote path \"%s\", error: %s", path.c_str(), sftp_strerror(last_error_)); |
| 740 | return false; |
| 741 | } |
| 742 | return true; |
| 743 | } |
| 744 | |
| 745 | bool SFTPClient::setAttributes(const std::string& path, const SFTPAttributes& input) { |
| 746 | LIBSSH2_SFTP_ATTRIBUTES attrs; |
no test coverage detected