plugins XEP-0234, file: use of SatFile for writing too
This commit is contained in:
parent
31c9e0d06e
commit
5e356f28f0
1 changed files with 18 additions and 4 deletions
|
|
@ -65,6 +65,12 @@ class SatFile(object):
|
|||
self._file.close()
|
||||
self.host.removeProgressCb(self.uid, self.profile)
|
||||
|
||||
def flush(self):
|
||||
self._file.flush()
|
||||
|
||||
def write(self, buf):
|
||||
self._file.write(buf)
|
||||
|
||||
def read(self, size=-1):
|
||||
read = self._file.read(size)
|
||||
if not read:
|
||||
|
|
|
|||
Loading…
Reference in a new issue