A lightweight, user-friendly Python tool that generates a clean, visually structured directory tree using ASCII art. Perfect for project documentation, debugging, or sharing file structures in terminals.
- Visual tree output with
├──,└──, and│connectors - Smart path resolution:
- Strips surrounding quotes
- Resolves relative paths (current or parent directory)
- Handles sibling project folders (e.g.,
../my_super_cool_project)
- Sorted directories and files for consistent output
- Copy-paste-ready terminal output
- No external dependencies
- Save the script as
filetrace.py - Run in terminal:
python filetrace.py