From 5003eb7ef0486f6563fa7e57864d51e3aa5b28b0 Mon Sep 17 00:00:00 2001 From: Christian Zangl Date: Sun, 14 Jul 2019 21:49:27 +0200 Subject: fix CopyLoader --- ranger/core/loader.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ranger/core/loader.py b/ranger/core/loader.py index bf4c780b..04ff279a 100644 --- a/ranger/core/loader.py +++ b/ranger/core/loader.py @@ -21,6 +21,7 @@ except ImportError: from ranger.core.shared import FileManagerAware from ranger.ext.signals import SignalDispatcher from ranger.ext.human_readable import human_readable +from ranger.ext.safe_path import get_safe_path class Loadable(object): @@ -51,7 +52,7 @@ class Loadable(object): class CopyLoader(Loadable, FileManagerAware): # pylint: disable=too-many-instance-attributes progressbar_supported = True - def __init__(self, copy_buffer, do_cut=False, resolve_conflict=False, dest=None): + def __init__(self, copy_buffer, do_cut=False, resolve_conflict=get_safe_path, dest=None): self.copy_buffer = tuple(copy_buffer) self.do_cut = do_cut self.original_copy_buffer = copy_buffer -- cgit 1.4.1-2-gfad0