Проект "Речевая аналитика для Клиники Оленевой"
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

11 lines
553 B

import os
text=''
for file in os.listdir('/media/dev/TEXTFILES/2025/06/01/'):
with open(f'/media/dev/TEXTFILES/2025/06/01/{file}', 'r') as fil:
text += f"{file} (01.06.2025) - \n{fil.read()}\n\n"
for day in ['31','30', '29','28','27','26']:
for file in os.listdir('/media/dev/TEXTFILES/2025/05'+'/'+day):
with open(os.path.join('/media/dev/TEXTFILES/2025/05'+'/'+day+'/'+file),'r') as fil:
text+=f"{file} ({day}.05.2025) - \n{fil.read()}\n\n"
with open('calls_for_week_in_single_file.txt','w') as f:
f.write(text)