Код: Выделить всё
if os.path.exists(logs_path_archive):
for source_file in downloaded_files:
destination_file = source_file.replace(logs_path,logs_path_archive)
shutil.move(source_file,destination_file)
Подробнее здесь: https://stackoverflow.com/questions/624 ... -move-file
Мобильная версия