diff options
-rw-r--r-- | ranger/ext/shutil_generatorized.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ranger/ext/shutil_generatorized.py b/ranger/ext/shutil_generatorized.py index a02ccfe4..436d2cb7 100644 --- a/ranger/ext/shutil_generatorized.py +++ b/ranger/ext/shutil_generatorized.py @@ -273,9 +273,9 @@ def move(src, dst, overwrite=False): the issues this implementation glosses over. """ - real_dst = dst + real_dst = os.path.join(dst, _basename(src)) if not overwrite: - real_dst = get_safe_path(os.path.join(dst, _basename(src))) + real_dst = get_safe_path(real_dst) try: os.rename(src, real_dst) except OSError: |