Flush output streams on 505

This commit is contained in:
Kovid Goyal 2007-10-24 03:43:11 +00:00
parent 3ba9ed9d32
commit e0c8f0771d

View File

@ -281,6 +281,8 @@ class PRS505(Device):
raise PathError('File already exists: '+path) raise PathError('File already exists: '+path)
dest = open(path, 'wb') dest = open(path, 'wb')
shutil.copyfileobj(infile, dest, 10*1024*1024) shutil.copyfileobj(infile, dest, 10*1024*1024)
dest.flush()
dest.close()
def rm(self, path, end_session=True): def rm(self, path, end_session=True):
path = self.munge_path(path) path = self.munge_path(path)