cScan Cross-Platform Guide

Overview

cScan now supports Windows, macOS, and Linux! The script automatically detects your operating system and adapts its behavior accordingly.

Platform Detection

When you run cScan, it will display the detected platform:

--- User Space Cleanup Assistant (Windows) ---
--- User Space Cleanup Assistant (macOS) ---
--- User Space Cleanup Assistant (Linux) ---

Platform-Specific Features

Windows

macOS

Linux

Cross-Platform File Categories

The script intelligently categorizes files based on platform conventions:

Safe to Delete

User Files (Need Confirmation)

Installation

Windows

pip install psutil
python cScan.py

macOS

pip3 install psutil
python3 cScan.py

Linux

pip3 install psutil
python3 cScan.py

Usage Examples

CLI Mode (All Platforms)

# Run the script
python cScan.py  # Windows
python3 cScan.py # macOS/Linux

# Direct CLI mode
python cScan.py --config  # Edit configuration

GUI Mode

The GUI adapts to your platform:

Platform-Specific Cleanup Suggestions

Windows

macOS

Linux

Configuration

The configuration file (cScan_config.ini) works the same on all platforms:

[Settings]
large_file_threshold_mb = 100
use_recycle_bin = true  # Uses Trash on macOS/Linux

[Paths]
# Platform-specific paths are automatically handled
include_downloads = true
include_documents = true
include_temp_folders = true

Safety Features

Cross-Platform Protection

Platform-Specific Safety

Troubleshooting

macOS Permission Issues

If you get permission errors on macOS:

  1. Grant Terminal/iTerm full disk access in System Preferences
  2. Run without sudo for user files
  3. Use sudo only for system-wide cleanup

Linux Trash Issues

If trash doesn’t work on Linux:

  1. Install gio: sudo apt install glib2.0-bin
  2. Or files will be moved to ~/.local/share/Trash/files/

Windows PowerShell Issues

If PowerShell commands fail:

  1. Run PowerShell as administrator once
  2. Execute: Set-ExecutionPolicy RemoteSigned

Advanced Features

Custom Scan Paths

Add platform-specific paths in the config:

[Paths]
# Windows
custom_scan_paths = D:\Downloads, E:\Temp

# macOS/Linux
custom_scan_paths = /Users/Shared/Downloads, /opt/temp

Dry Run Mode

Test what would be deleted without actually deleting:

[Settings]
dry_run_mode = true

Performance Tips

All Platforms

Platform-Specific

This cross-platform version ensures consistent behavior across all operating systems while respecting platform-specific conventions and safety requirements.