mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-06-23 15:30:45 -04:00
Possible fix for occasional send to device failures on windows
This commit is contained in:
parent
ce43482952
commit
b13d51c837
@ -330,6 +330,7 @@ class PRS505(Device):
|
||||
|
||||
def put_file(self, infile, path, replace_file=False, end_session=True):
|
||||
path = self.munge_path(path)
|
||||
path = path.replace('/', os.sep)
|
||||
if os.path.isdir(path):
|
||||
path = os.path.join(path, infile.name)
|
||||
if not replace_file and os.path.exists(path):
|
||||
|
Loading…
x
Reference in New Issue
Block a user