blob: 50768f1874c54d62583c5d02339cc2c63450f246 [file] [log] [blame]
#! /usr/bin/python3
# import urllib.request
# import requests
import re
import os
for root, dirs, files in os.walk("."):
for file in files:
if re.search(r"^Custom\w+ItemProvider.java", file):
newFilename = re.sub(r"^Custom", "", file)
newFilename = re.sub(r"ItemProvider.java$", "CustomItemProvider.java", newFilename)
print(os.path.join(root, file) + "---> " + os.path.join(root, newFilename))
os.rename(os.path.join(root, file), os.path.join(root, newFilename))