From bf7af04a6f3d908888ecd707e3be33c85ac23f8a Mon Sep 17 00:00:00 2001 From: Ethan Dalool Date: Wed, 13 Jan 2021 17:45:04 -0800 Subject: [PATCH] Use more specific condition to avoid case-change misses. --- brename.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/brename.py b/brename.py index b1030c9..f1d4b76 100644 --- a/brename.py +++ b/brename.py @@ -79,7 +79,7 @@ def brename(transformation, autoyes=False, do_naturalsort=False, recurse=False): new = eval(transformation) new = parent.with_child(new) - if new == old: + if new.basename == old.basename: continue pairs.append((old, new))