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))