nesuwu/NTScan — reverse-engineered prompt

Reverse engineered prompt

Build me a Windows only tool called NTScan that scans a folder tree really fast and shows which folders are taking up disk space. I want both a normal command line version and a terminal UI. It should have a fast metadata only scan and a more accurate scan that also checks alternate data streams and real allocation size. Please make sure hardlinked files are only counted once, junctions and symlink loops do not cause endless scanning, and file errors like access denied or sharing problems are tracked instead of crashing.

I also want duplicate file detection based on content hash, with a minimum file size option and cached hashes between runs so repeat scans are quicker. In the UI, let me sort by name, size, or date, and include a small settings screen where defaults can be saved. Add options to show individual files, follow symlinks, and print a final table without the UI for debug use.

If it fits cleanly, expose the core scanner as a DLL with a simple C ABI that returns JSON. Look up current docs online if you need to.

Want more depth? Deep Reverse