przemowoAnalizator/negativeSongs/appendTxtToFiles.py

6 lines
183 B
Python
Raw Normal View History

2020-01-09 21:13:45 +01:00
import sys, glob, os
files = glob.glob('**/*', recursive=True)
for f in files:
if os.path.isfile(f):
print(f'mv "{f}" "{f}.txt"')
#os.system(f'mv "{f}" "{f}.txt"')