import os
JSON_FOLDER = os.path.expanduser("~/Downloads/files/original/json_output")
print("=== ДИАГНОСТИКА ПАПОК ===")
print("\n1. Файлы в текущей папке:")
files = [f for f in os.listdir(".") if os.path.isfile(f) and not f.endswith(".py")]
for f in files[:10]: # Покажем первые 10 файлов
print(f" - {f}")
print("\n2. Файлы в папке JSON:")
if os.path.exists(JSON_FOLDER):
jsons = [j for j in os.listdir(JSON_FOLDER) if j.endswith(".json")]
for j in jsons[:10]: # Покажем первые 10 JSON
print(f" - {j}")
else:
print("Ошибка: папка JSON не найдена по пути:", JSON_FOLDER)