ooops that shouldn't be there
All checks were successful
Actions / Autotagger (push) Successful in 9s
Actions / Build Gunpack (push) Successful in 20s

This commit is contained in:
Seaswimmer 2024-07-23 19:31:11 -04:00
parent a8b8b94298
commit 8e9a0f122c
Signed by: cswimr
GPG key ID: 3813315477F26F82
4 changed files with 0 additions and 15 deletions

View file

@ -1,15 +0,0 @@
import os
def rename_files(root_dir, old_str, new_str):
for dirpath, dirnames, filenames in os.walk(root_dir):
for filename in filenames:
if old_str in filename:
old_file = os.path.join(dirpath, filename)
new_file = os.path.join(dirpath, filename.replace(old_str, new_str))
os.rename(old_file, new_file)
print(f'Renamed: {old_file} to {new_file}')