Is Your Mac Running Out of Space?
We’ve created DiskSweep – two lightweight utilities (Python + Bash) to help you find and manage large files. Perfect for developers tired of storage warnings!
GitHub Repository: TechKluster/disksweep
Why Choose DiskSweep?
🐍 Python Version
- CSV exports
- Cross-platform support
- Interactive prompts
- Advanced filtering
🐚 Bash Version
- Zero dependencies
- Instant results
- Low memory usage
- Cron job friendly
Getting Started
- Clone the repository:bashCopygit clone https://github.com/TechKluster/disksweep.git cd disksweep
- Choose your version:
- Python:
/python/disksweep.py
- Bash:
/bash/disksweep.sh
- Python:
Python Version Setup
Installation:
cd python
pip install -r requirements.txt
Basic Usage:
# Scan Downloads folder for 500MB+ files
python3 disksweep.py -d ~/Downloads -s 500
# Generate CSV report
python3 disksweep.py --csv report.csv
Bash Version Setup
Installation:
cd bash
chmod +x disksweep.sh
Basic Usage:
# Quick home directory scan
./disksweep.sh
# Find 2GB+ files in Movies folder
./disksweep.sh -d ~/Movies -s 2000
Feature Comparison
Feature | Python Version | Bash Version |
---|---|---|
Minimum File Size | 1MB | 10MB |
CSV Export | ✓ | ✗ |
Execution Speed | Moderate | Fast |
Pro Tips
- Scheduled Cleanups:
Add this to crontab for weekly scans:bashCopy0 3 * * 1 /path/to/disksweep.sh -d ~/Downloads - Common Targets:
- Docker images (
~/Documents/DockerDesktop
) - Android SDK (
~/.android
) - Xcode Derived Data (
~/Library/Developer
)
- Docker images (
FAQ
Q: Which version should I use?
A: Use Python for detailed reports, Bash for quick terminal checks.
Q: Is this safe for macOS Ventura/Sonoma?
A: Yes! Tested on macOS versions from Catalina onward.
Ready to Reclaim Your Space?
Both utilities are available under MIT License. Star the repo to support development! ⭐