GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CodeTruthAgent/generate_structure.py at main · Zeeshan78699/CodeTruthAgent

Expand file tree

/

generate_structure.py

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
46 lines (31 loc) · 961 Bytes
/

generate_structure.py

Copy path

File metadata and controls

46 lines (31 loc) · 961 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
import os
ROOT = r"C:\AI_Project\CodeTruthAgent"
EXCLUDE_FOLDERS = {
".venv",
"__pycache__",
".git",
".pytest_cache",
"site-packages",
"node_modules",
"dist",
"build",
".mypy_cache",
".idea",
".vscode"
}
OUTPUT_FILE = "PROJECT_STRUCTURE.txt"
with open(OUTPUT_FILE, "w", encoding="utf-8") as f:
for root, dirs, files in os.walk(ROOT):
# Remove excluded folders
dirs[:] = [d for d in dirs if d not in EXCLUDE_FOLDERS]
level = root.replace(ROOT, "").count(os.sep)
indent = "│ " * level
folder_name = os.path.basename(root)
f.write(f"{indent}📂 {folder_name}\n")
subindent = "│ " * (level + 1)
for file in files:
# Skip compiled/cache files
if file.endswith((".pyc", ".pyo")):
continue
f.write(f"{subindent}📄 {file}\n")
print(f"\nProject structure saved to: {OUTPUT_FILE}")
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.