mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Merge branch 'master' of https://github.com/GRiker/calibre
This commit is contained in:
commit
d09d10301f
@ -259,10 +259,8 @@ class libiMobileDevice():
|
||||
else:
|
||||
with open(src, 'rb') as f:
|
||||
content = bytearray(f.read())
|
||||
handle = self._afc_file_open(str(dst), mode='wb')
|
||||
if handle is not None:
|
||||
success = self._afc_file_write(handle, content, mode='wb')
|
||||
self._log(" success: {0}".format(success))
|
||||
success = self._afc_file_write(handle, content, mode='wb')
|
||||
self._log(" success: {0}".format(success))
|
||||
|
||||
self._afc_file_close(handle)
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user