From b2558b8d4caf4f2f15476fac09902b234dfc6c6a Mon Sep 17 00:00:00 2001 From: Sylvain Willy Date: Sat, 11 Apr 2020 01:50:37 +0200 Subject: [PATCH] Handle case when both always_copy and prefer_hardlink_to_copy are True --- tvnamer/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tvnamer/utils.py b/tvnamer/utils.py index 99e8b11..1d2849d 100644 --- a/tvnamer/utils.py +++ b/tvnamer/utils.py @@ -1034,7 +1034,7 @@ class Renamer(object): def __init__(self, filename): self.filename = os.path.abspath(filename) - def newPath(self, new_path = None, new_fullpath = None, force = False, always_copy = False, always_move = False, always_hardlink = False, leave_symlink = False, create_dirs = True, getPathPreview = False): + def newPath(self, new_path = None, new_fullpath = None, force = False, always_copy = False, prefer_hardlink_to_copy = False, always_move = False, always_hardlink = False, leave_symlink = False, create_dirs = True, getPathPreview = False): """Moves the file to a new path. If it is on the same partition, it will be moved (unless always_copy is True)