A professional Python-based tool that intelligently crawls, analyzes, and reports the 50 largest files on your system, with smart suggestions for cleanup and a stylish output report.
- π Interactive Mode β Choose between scanning the whole system or a specific drive
- π Top 50 Largest Files β Sorted by size, displayed with full path
- π§Ή Smart Cleanup Suggestions β Flags cache/temp/log/junk files for removal
- π Structured Report β Generates a clean, formatted text report saved locally
- β³ Progress Bar β Smooth, responsive progress tracking with
tqdm - π¬ Human-Readable Sizes β File sizes shown in friendly units like
MB,GB, etc. - π§ Intelligent Junk Detection β Detects unnecessary files using names and extensions
- π₯οΈ Works on Windows, requires only Python 3.x
Make sure you have Python 3 installed, then clone and install dependencies:
git clone https://github.com/xoxxel/smart-disk-analyzer.git
cd smart-disk-analyzer
pip install -r requirements.txtStart the scan using:
npm run analyzeOr directly:
python smart_disk_analyzer.pyYou'll be prompted with:
π¦ Choose scan option:
1 - Full system scan (all drives)
2 - Scan a specific drive (e.g., D)
Enter choice [1 or 2]: 2
Enter drive letter (e.g., "D"): D
The script will start scanning and display a progress bar as it crawls your file system.
================================================================================
π File Size Report - 2025-07-10 18:20:03
π Scanned paths: D:\
π Top 50 Largest Files
D:\Games\HugeFile.iso
Size: 4.2 GiB
D:\Temp\debug.log
Size: 1.3 GiB | β
Recommended for Deletion
--------------------------------------------------------------------------------Files are marked as recommended for deletion if:
- Filename contains:
cache,temp,log,bak,old, etc. - Extensions include:
.tmp,.log,.bak,.dmp,.swp,.chk
The report is saved in the root folder of the project as:
file_scan_report.txtYou can use NPM for a cleaner command:
// package.json
"scripts": {
"analyze": "python smart_disk_analyzer.py"
}Then run:
npm run analyzeCreated by xoxxel with β€οΈ using Python and a passion for disk health.
This project is open-source under the MIT License.