mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Flush output streams on 505
This commit is contained in:
parent
3ba9ed9d32
commit
e0c8f0771d
@ -281,6 +281,8 @@ class PRS505(Device):
|
||||
raise PathError('File already exists: '+path)
|
||||
dest = open(path, 'wb')
|
||||
shutil.copyfileobj(infile, dest, 10*1024*1024)
|
||||
dest.flush()
|
||||
dest.close()
|
||||
|
||||
def rm(self, path, end_session=True):
|
||||
path = self.munge_path(path)
|
||||
|
Loading…
x
Reference in New Issue
Block a user