We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug libssh2_sftp_fstat_ex (both the get and set variants) returns LIBSSH2_ERROR_SFTP_PROTOCOL on a newly created file of zero size
To Reproduce
sftp_handle = libssh2_sftp_open_ex(sftp_session, sftppath.c_str(), (unsigned int)strlen(sftppath.c_str()), LIBSSH2_FXF_WRITE|LIBSSH2_FXF_CREAT, LIBSSH2_SFTP_S_IRUSR|LIBSSH2_SFTP_S_IWUSR, LIBSSH2_SFTP_OPENFILE)
LIBSSH2_SFTP_ATTRIBUTES attrs; libssh2_sftp_fstat_ex(sftp_handle, &attrs, 0); //or attrs.flags = LIBSSH2_SFTP_ATTR_SIZE; attrs.filesize = 0; libssh2_sftp_fstat_ex(sftp_handle, &attrs, 1);
Expected behavior Should have been successful
Version (please complete the following information):
The text was updated successfully, but these errors were encountered:
Can you post the log output with debug logging enabled?
Sorry, something went wrong.
We merged a patch that may be related to this: #1019
No branches or pull requests
Describe the bug
libssh2_sftp_fstat_ex (both the get and set variants) returns LIBSSH2_ERROR_SFTP_PROTOCOL on a newly created file of zero size
To Reproduce
Expected behavior
Should have been successful
Version (please complete the following information):
The text was updated successfully, but these errors were encountered: