📁 .
├── 📁 src
│ └── 📄 main.cpp
├── 📄 Makefile
├── 📄 cc.py
└── 📄 compile_commands.json
A fast, colorful, advanced Windows command-line tree utility written in C++20 using std::filesystem.
Features:
- Unicode icons (📁📄🔗) for directories, files, symlinks
- Color output using native Windows console API
- Command line options with
--max-deep-recursive=Nto limit recursion depth - Handles access permission errors gracefully
- Uses clang++ and optimized Makefile for small builds
tree [path] [--max-deep-recursive=N]path- Root directory to list (defaults to current directory)--max-deep-recursive=N- Limit directory recursion depth (default: unlimited)-h,--help- Show this help message
Example:
tree C:\Users --max-deep-recursive=3Make sure you have clang++ installed on Windows (via LLVM installer or WSL).
Run:
makeThis compiles src/main.cpp into build/tree.exe with C++20 and optimizations.
This project is licensed under the Apache License 2.0. See LICENSE for details.