From b13d51c837a28f45be95833f1b45b461ab2585df Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 30 May 2008 09:09:31 -0700 Subject: [PATCH] Possible fix for occasional send to device failures on windows --- src/calibre/devices/prs505/driver.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/calibre/devices/prs505/driver.py b/src/calibre/devices/prs505/driver.py index 59375d8446..3d3a3ffc83 100644 --- a/src/calibre/devices/prs505/driver.py +++ b/src/calibre/devices/prs505/driver.py @@ -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):