From a6ff34a47fd3925afbae3d9b1510a632839eb017 Mon Sep 17 00:00:00 2001 From: Ruud Date: Tue, 14 Oct 2014 22:49:19 +0200 Subject: [PATCH] Only check exists on file --- couchpotato/core/plugins/renamer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/plugins/renamer.py b/couchpotato/core/plugins/renamer.py index 94e1002c..3d370d83 100755 --- a/couchpotato/core/plugins/renamer.py +++ b/couchpotato/core/plugins/renamer.py @@ -791,7 +791,7 @@ Remove it if you want it to be renamed (again, or at least let it try again) dest = sp(dest) try: - if os.path.exists(dest): + if os.path.exists(dest) and os.path.isfile(dest): raise Exception('Destination "%s" already exists' % dest) move_type = self.conf('file_action')