SamplePythonScripts icon indicating copy to clipboard operation
SamplePythonScripts copied to clipboard

Typo in bulkRename.py code

Open primowalker opened this issue 7 years ago • 1 comments

There is a typo on line 19 of bulkRename.py. What you have there is:

os.rename(i,template_name+ str(j)+template_extension')

The issue is that the single quote is missing at the beginning inside the parentheses, so it should read:

os.rename('i,template_name+ str(j)+template_extension')

primowalker avatar May 05 '17 01:05 primowalker

Nope, there should not be a single quote, os.rename takes two arguments the old name and the new name, if we surround it by single quotes, it becomes only one argument.

thewhitetulip avatar May 05 '17 03:05 thewhitetulip