diff options
author | Christian Zangl <laktak@cdak.net> | 2019-07-14 21:49:27 +0200 |
---|---|---|
committer | Christian Zangl <laktak@cdak.net> | 2019-07-14 21:49:27 +0200 |
commit | 5003eb7ef0486f6563fa7e57864d51e3aa5b28b0 (patch) | |
tree | 3e309fd4ee3e2e555e170b9ab22412133ade5b14 /ranger | |
parent | 9d817dc755285f10e556e7a100fa22f8480397ce (diff) | |
download | ranger-5003eb7ef0486f6563fa7e57864d51e3aa5b28b0.tar.gz |
fix CopyLoader
Diffstat (limited to 'ranger')
-rw-r--r-- | ranger/core/loader.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 |