diff options
author | toonn <toonn@toonn.io> | 2019-12-22 16:35:28 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2019-12-22 16:35:28 +0100 |
commit | 7f58cc8a7a30f963bd9ea15af728a1225358285a (patch) | |
tree | 6bd086f0d1244aa08356a34e0c5c3dcb60a7aa9a | |
parent | 14499c13222e6c5440bafc64b658c39d85f14dfd (diff) | |
download | ranger-7f58cc8a7a30f963bd9ea15af728a1225358285a.tar.gz |
Rename APPENDIX to SUFFIX
-rw-r--r-- | ranger/ext/safe_path.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ranger/ext/safe_path.py b/ranger/ext/safe_path.py index ed2cf2b6..b172b577 100644 --- a/ranger/ext/safe_path.py +++ b/ranger/ext/safe_path.py @@ -3,14 +3,14 @@ import os -APPENDIX = '_' +SUFFIX = '_' def get_safe_path(dst): if not os.path.exists(dst): return dst - if not dst.endswith(APPENDIX): - dst += APPENDIX + if not dst.endswith(SUFFIX): + dst += SUFFIX if not os.path.exists(dst): return dst n = 0 |