From 75eb5dad71c375efe609da8a68d522b0b8122772 Mon Sep 17 00:00:00 2001 From: Christoph Dalitz Date: Tue, 2 May 2023 11:20:15 +0200 Subject: [PATCH] fixed error in rename script --- rename.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rename.py b/rename.py index e2c43a5..cc87455 100755 --- a/rename.py +++ b/rename.py @@ -51,7 +51,7 @@ def rename_files(dirname, names): for baseDir, dirName, fileNames in walk(full_path): rename_files(baseDir, fileNames) if name.find(change_from) != -1: - new_name = name.replace(change_from) + new_name = name.replace(change_from, change_to) print("Renaming %s to %s" % (full_path, join(dirname, new_name))) rename(full_path, join(dirname, new_name))