p
File size: 164 Bytes
c2e82c1
 
 
 
 
 
 
1
2
3
4
5
6
7
import os

os.chdir(os.path.dirname(os.path.abspath(__file__)))

for file in os.listdir():
    if file.endswith(".txt"):
        os.rename(file, f"txt logs/{file}")