Initial commit: Add webtoon downloader
This commit is contained in:
15
rename_drawable.py
Normal file
15
rename_drawable.py
Normal file
@@ -0,0 +1,15 @@
|
||||
|
||||
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)
|
||||
Reference in New Issue
Block a user