summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rwxr-xr-xranger/config/commands.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/config/commands.py b/ranger/config/commands.py
index 17a0fa9c..651b2640 100755
--- a/ranger/config/commands.py
+++ b/ranger/config/commands.py
@@ -1162,7 +1162,7 @@ class bulkrename(Command):
         for old, new in zip(filenames, new_filenames):
             if old != new:
                 basepath, _ = os.path.split(new)
-                if (basepath is not None and basepath not in new_dirs
+                if (basepath and basepath not in new_dirs
                         and not os.path.isdir(basepath)):
                     script_lines.append("mkdir -vp -- {dir}".format(
                         dir=esc(basepath)))