mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-22 00:24:29 +01:00
Possible fix for occasional send to device failures on windows
This commit is contained in:
parent
ce43482952
commit
b13d51c837
1 changed files with 1 additions and 0 deletions
|
|
@ -330,6 +330,7 @@ def get_file(self, path, outfile, end_session=True):
|
|||
|
||||
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…
Reference in a new issue