A lightweight, Windows-only, terminal-based file structure previewer written in modern C++.
InterScan recursively scans a directory and prints a clean, tree-like view of folders and files with color-coded output, optional file-extension ignoring, and robust input parsing.
Built for developers who want clarity
- 📁 Recursive directory traversal (full depth)
- 🎨 Color-coded output (folders, tree branches, extensions)
- 🚫 Ignore file extensions via
--ignoreor--ignore: - 🧼 Sanitized and flexible input parsing
- 🪟 Native Windows API (fast, no dependencies)
- ⚡ Single-file project (easy to compile & modify)
- Windows only (uses Win32 APIs)
- Tested on Windows 10 / 11
This is a single-file project by design:
InterScan/
├── InterScan.cpp
├── README.md
└── .gitignore
g++ InterScan.cpp -o interscan -std=c++17cl /std:c++17 InterScan.cppThis will generate:
interscan.exe
Run the program and enter input when prompted.
Enter Path :
You can provide:
- Just a path
- A path + ignore flags
- Quoted paths
- Multiple extensions
All of the following inputs are valid and supported.
H:\programming
"H:\My Projects"
H:\programming --ignore: .cpp .json .py
H:\programming --ignore:.cpp,.json,.py
H:\programming --ignore .cpp .json .py
H:\programming --ignore cpp json py
H:\programming --ignore .cpp,.h&.txt
H:\programming --ignore cpp, h & txt
H:\programming --IGNORE .CPP .JSON
H:\programming --Ignore: .Cpp .JsOn
"H:\My Projects" --ignore .exe .dll
H:\programming --ignore
➡️ Result: behaves like normal scan (nothing ignored)
programming\
|-->[assets]
| |-->logo.png
| |-->banner.jpg
#-->[src]
|-->main.cpp
|-->utils.h
- Folders are shown in brackets:
[folder] - Extensions are color-highlighted
- Tree branches are visually aligned
InterScan uses Windows console color attributes:
| Type | Color |
|---|---|
| Folder | Blue |
| Tree lines | Magenta |
| Extensions | Red |
| Prompt | Green |
| Default | Light Gray |
- Windows-only (uses
windows.h) - Symbolic links are treated as files
- Extremely large directories may take time
InterScan was built to:
- Avoid AI misunderstanding folder structures
- Quickly visualize project layouts
- Replace heavy GUI tools with a fast CLI
- Stay hackable and minimal
- Folder ignore support
- File/folder counters (summary)
- Export tree to text / markdown
- CLI arguments instead of prompt
MIT License — do whatever you want, just don’t blame me 😄
BinaryOxide GitHub: https://github.com/BinaryOxide
If it pokes your folders and shows the truth — it did its job.
