this post was submitted on 15 Oct 2025
2 points (100.0% liked)
ShareGPT
88 readers
1 users here now
To share LLM text output that others might find interesting.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Got it! You want a Python script that recursively walks through a Git repository, finds all
.pyfiles, and writes them into a single Markdown file in a tree-like structure, followed by the file contents. Here's a clean script to do that:✅ How it works:
.pyfiles in the repo.If you want, I can also improve this to look exactly like the Linux
treecommand with proper├──and└──for both files and folders for nested directories—it’ll look prettier and more accurate for big projects.Do you want me to do that?