How aryangupta-builds/pc-guardian works
PC Guardian is a Windows-oriented console file manager. Its main workflow is to accept a folder or file path, scan and report on files, let the user inspect or organize them, and record moves for later review or undo. The implementation is a single 160 KB C++ source file, so the distinct responsibilities below share main.cpp. README statements support several capabilities whose implementation details were not included in the excerpts; those links are documented rather than inferred from unseen code.
Main entry points: main.cpp Menu workflow
Components 17
Console workflow
- Menu workflow
main.cpp
File inspection
- Recursive scanner
main.cpp - File details
main.cpp - Storage analysis
main.cpp - File report
main.cpp - File filters
main.cpp - Name search
main.cpp - File sorting
main.cpp
Organization and recovery
- Category rules
main.cpp - Name rules
main.cpp - Size rules
main.cpp - Move preview
main.cpp - Move processor
main.cpp - Move history
main.cpp - Undo changes
main.cpp
Other components
- User
- Local filesystem
Connections 23
- User → Menu workflow: chooses actions
README.md - Menu workflow → Recursive scanner: starts scan
README.md - Recursive scanner → Local filesystem: walks paths
README.md - Recursive scanner → File details: collects details
README.md - Menu workflow → Storage analysis: requests analysis
README.md - Menu workflow → File report: requests report
README.md - Menu workflow → File filters: filters files
main.cpp - Menu workflow → Name search: searches names
README.md - Menu workflow → File sorting: sorts files
main.cpp - Menu workflow → Category rules: selects mode
README.md - Menu workflow → Name rules: selects mode
README.md - Menu workflow → Size rules: selects mode
main.cpp - Category rules → Move preview: prepares moves
README.md - Name rules → Move preview: prepares moves
README.md - Size rules → Move preview: prepares moves
README.md - Move preview → Move processor: confirms moves
README.md - Move processor → Local filesystem: moves files
README.md - Move processor → Move history: records outcomes
main.cpp - Menu workflow → Move history: views history
README.md - Move history → Local filesystem: saves or reads log
README.md - Menu workflow → Undo changes: requests undo
README.md - Undo changes → Local filesystem: restores files
main.cpp - Undo changes → Move history: updates batches
main.cpp