16 lines
557 B
Python
16 lines
557 B
Python
|
|
import os
|
|
from pathlib import Path
|
|
|
|
|
|
res = Path('E:/') / 'Projects' / 'AndroidStudioProjects' / 'WebtoonViewer' / 'app' / 'src' / 'main' / 'res'
|
|
|
|
for folder_path in res.iterdir():
|
|
if "drawable" in folder_path.name and folder_path.is_dir():
|
|
for file_path in folder_path.iterdir():
|
|
if "menu-dots-vertical" in file_path.name:
|
|
new_path = folder_path / ("menu_" + file_path.name.split("_")[1])
|
|
# if new_path.exists:
|
|
# os.remove(new_path)
|
|
os.rename(file_path, new_path)
|