Commit 0173c6c7 by rfkelly0

expose.sftp: since text/binary flags are not sent to the server, open all…

expose.sftp: since text/binary flags are not sent to the server, open all underlying files in binary mode
parent b0300ad4
...@@ -154,7 +154,7 @@ class SFTPHandle(paramiko.SFTPHandle): ...@@ -154,7 +154,7 @@ class SFTPHandle(paramiko.SFTPHandle):
def __init__(self,owner,path,flags): def __init__(self,owner,path,flags):
super(SFTPHandle,self).__init__(flags) super(SFTPHandle,self).__init__(flags)
mode = flags_to_mode(flags) mode = flags_to_mode(flags) + "b"
self.owner = owner self.owner = owner
self.path = path self.path = path
self._file = owner.fs.open(path,mode) self._file = owner.fs.open(path,mode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment