Skip to content

Smart Disk Analyzer | Optimize Your Storage with Ease Smart Disk Analyzer is a powerful, open-source Python tool designed to help you manage disk space efficiently.

Notifications You must be signed in to change notification settings

xoxxel/smart-disk-analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

7 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ Smart Disk Analyzer

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.


πŸš€ Features

  • πŸ”Ž 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

πŸ“¦ Installation

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.txt

▢️ Usage

Start the scan using:

npm run analyze

Or directly:

python smart_disk_analyzer.py

You'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.


πŸ“„ Sample Output: file_scan_report.txt

================================================================================
πŸ“„ 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
--------------------------------------------------------------------------------

🧠 Junk File Detection Criteria

Files are marked as recommended for deletion if:

  • Filename contains: cache, temp, log, bak, old, etc.
  • Extensions include: .tmp, .log, .bak, .dmp, .swp, .chk

πŸ“ Output Location

The report is saved in the root folder of the project as:

file_scan_report.txt

πŸ“Œ Scripts

You can use NPM for a cleaner command:

// package.json
"scripts": {
  "analyze": "python smart_disk_analyzer.py"
}

Then run:

npm run analyze

πŸ‘¨β€πŸ’» Author

Created by xoxxel with ❀️ using Python and a passion for disk health.


πŸ“œ License

This project is open-source under the MIT License.


About

Smart Disk Analyzer | Optimize Your Storage with Ease Smart Disk Analyzer is a powerful, open-source Python tool designed to help you manage disk space efficiently.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages