diff src/plugins/plugin_misc_file.py @ 1568:1f7a34d499e0

plugins XEP-0234, file: use of SatFile for writing too
author Goffi <goffi@goffi.org>
date Sun, 08 Nov 2015 14:44:33 +0100
parents ebf97c1ac14a
children babd97d80049
line wrap: on
line diff
--- a/src/plugins/plugin_misc_file.py	Sun Nov 08 14:44:33 2015 +0100
+++ b/src/plugins/plugin_misc_file.py	Sun Nov 08 14:44:33 2015 +0100
@@ -65,6 +65,12 @@
         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: