Skip to content

Commit

Permalink
fixed error in rename script
Browse files Browse the repository at this point in the history
  • Loading branch information
cdalitz committed May 2, 2023
1 parent e03f38b commit 75eb5da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rename.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 75eb5da

Please sign in to comment.