From 9a6be98f1fba713a9ed352d3e28082ec7bc58861 Mon Sep 17 00:00:00 2001 From: echel0n Date: Sat, 12 Jul 2014 15:10:10 -0700 Subject: [PATCH] Fix for symlinking during Post-Processing --- sickbeard/helpers.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sickbeard/helpers.py b/sickbeard/helpers.py index 7550a1ec..1575870d 100644 --- a/sickbeard/helpers.py +++ b/sickbeard/helpers.py @@ -439,15 +439,15 @@ def hardlinkFile(srcFile, destFile): copyFile(srcFile, destFile) -def symlink(src, dst): +def symlink(srcFile, destFile): if os.name == 'nt': import ctypes - if ctypes.windll.kernel32.CreateSymbolicLinkW(unicode(dst), unicode(src), 1 if os.path.isdir(src) else 0) in [0, + if ctypes.windll.kernel32.CreateSymbolicLinkW(unicode(destFile), unicode(srcFile), 1 if os.path.isdir(srcFile) else 0) in [0, 1280]: raise ctypes.WinError() else: - os.symlink(src, dst) + os.symlink(srcFile, destFile) def moveAndSymlinkFile(srcFile, destFile):