Spaces:
No application file
No application file
| import os | |
| import shutil | |
| import glob | |
| # ุงููููุฏุฑ ุงูุฌุฏูุฏ | |
| destination_folder = "diseases" | |
| os.makedirs(destination_folder, exist_ok=True) # ูู ู ุด ู ูุฌูุฏุ ููุดุฆู | |
| # ุงูุจุญุซ ุนู ูู ู ููุงุช .txt ูู ุงููููุฏุฑ ุงูุญุงูู | |
| txt_files = glob.glob("*.txt") | |
| # ููู ูู ู ูู | |
| for file in txt_files: | |
| shutil.move(file, os.path.join(destination_folder, os.path.basename(file))) | |
| print(f"โ ุชู ููู {len(txt_files)} ู ูู ุฅูู '{destination_folder}'") |