We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64f6cac commit e9935cbCopy full SHA for e9935cb
src/pylibsshext/sftp.pyx
@@ -100,7 +100,7 @@ cdef class SFTP:
100
raise LibsshSFTPException("Reading data from remote file [%s] failed with error [%s]"
101
% (remote_file, self._get_sftp_error_str()))
102
103
- with open(local_file, 'wb+') as f:
+ with open(local_file, 'ab') as f:
104
bytes_written = f.write(read_buffer[:file_data])
105
if bytes_written and file_data != bytes_written:
106
sftp.sftp_close(rf)
0 commit comments