From 10052b7e86b1ab2a5e3ec8684f5a4225206bc3c3 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sun, 2 Sep 2012 11:14:02 +0200 Subject: [PATCH] Use shutil for rename in updater --- couchpotato/core/_base/updater/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/_base/updater/main.py b/couchpotato/core/_base/updater/main.py index 980e247..3ddec1f 100644 --- a/couchpotato/core/_base/updater/main.py +++ b/couchpotato/core/_base/updater/main.py @@ -305,7 +305,7 @@ class SourceUpdater(BaseUpdater): if not os.path.isdir(dirname): self.makeDir(dirname) - os.rename(fromfile, tofile) + shutil.move(fromfile, tofile) try: existing_files.remove(tofile) except ValueError: