import os print("=" * 80) print("📂 ТЕКУЩЕЕ СОСТОЯНИЕ ФАЙЛОВ ПРОЕКТА (scud_orion_context)") print("=" * 80) total_files = 0 total_size = 0 for root, dirs, files in os.walk('.'): # Исключаем служебные каталоги dirs[:] = [d for d in dirs if d not in ['.git', '__pycache__', 'venv', '.venv', 'extracted_project']] for f in files: p = os.path.join(root, f) size = os.path.getsize(p) total_files += 1 total_size += size print(f"{p:<55} ({size:>10,} bytes)".replace(',', ' ')) print("-" * 80) print(f"ИТОГО: файлов: {total_files} | Общий объем: {total_size / (1024 * 1024):.2f} MB") print("=" * 80)