diff options
author | David Pugnasse <david.pugnasse@gmail.com> | 2011-08-10 10:46:59 +0200 |
---|---|---|
committer | David Pugnasse <david.pugnasse@gmail.com> | 2011-08-10 10:58:46 +0200 |
commit | 71c57a7b150447e6120e0a7e2735dfe827975512 (patch) | |
tree | 635c7182a4ebe1f89ecb172f46fc6bf7b282594a /ranger/core/actions.py | |
parent | dc91c2868201bee8bb3bbbaae3618a2a2b9ebdde (diff) | |
download | ranger-71c57a7b150447e6120e0a7e2735dfe827975512.tar.gz |
improved renaming
doesn't overwrite files creates directories on rename
Diffstat (limited to 'ranger/core/actions.py')
-rw-r--r-- | ranger/core/actions.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/core/actions.py b/ranger/core/actions.py index 8cecf077..7bb80343 100644 --- a/ranger/core/actions.py +++ b/ranger/core/actions.py @@ -830,6 +830,6 @@ class Actions(FileManagerAware, EnvironmentAware, SettingsAware): src = src.path try: - os.rename(src, dest) + os.renames(src, dest) except OSError as err: self.notify(err) |