From 26edaad0e79890c4c316edffa7e0acf45f9478c8 Mon Sep 17 00:00:00 2001 From: Mohamed Fathallah <32023899+Ahmedman60@users.noreply.github.com> Date: Wed, 22 Jan 2025 11:13:23 +0200 Subject: [PATCH] Update rename.py Fixing name error in code --- Automation/rename.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Automation/rename.py b/Automation/rename.py index 00f106a8a..c0d68fb68 100644 --- a/Automation/rename.py +++ b/Automation/rename.py @@ -40,9 +40,9 @@ # You have the power to reformat in any way you see fit print('{}-{}{}'.format(f_number, f_title.strip(), file_ext.strip())) - new_name = '{}-{}{}'.format(file_num, file_title, file_ext) + new_name = '{}-{}{}'.format(f_number, f_title, file_ext) - os.rename(fn, new_name) + os.rename(file_name, new_name) # print(len(os.listdir()))