DiskSweep Utility for MacOS

Table of Contents

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

  1. Clone the repository:bashCopygit clone https://github.com/TechKluster/disksweep.git cd disksweep
  2. Choose your version:
    • Python: /python/disksweep.py
    • Bash: /bash/disksweep.sh

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

FeaturePython VersionBash Version
Minimum File Size1MB10MB
CSV Export
Execution SpeedModerateFast

Pro Tips

  1. Scheduled Cleanups:
    Add this to crontab for weekly scans:bashCopy0 3 * * 1 /path/to/disksweep.sh -d ~/Downloads
  2. Common Targets:
    • Docker images (~/Documents/DockerDesktop)
    • Android SDK (~/.android)
    • Xcode Derived Data (~/Library/Developer)

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! ⭐

Get DiskSweep on GitHub

DiskSweep Utility for MacOS

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

Read More »