You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Reorganize sections for better logical flow (Quick Start first)
- Remove redundant 'At a Glance' section
- Consolidate duplicate macOS download links and Windows instructions
- Streamline content while maintaining all essential information
- Improve readability and scannability
- Reduce overall length by ~50 lines without losing information
> **⚠️ Important Security Notice (Version 4.0)**: The pre-built Windows `.exe` file has been removed due to security violations detected by Windows 11 and Sentinel One. Windows users should build the executable from source (see [Building Windows Releases](#building-windows-releases) below) or use the CLI/TUI interfaces directly with Python.
3
+
> **⚠️ Important Security Notice (Version 4.0)**: The pre-built Windows `.exe` file has been removed due to security violations detected by Windows 11 and Sentinel One. Windows users should build the executable from source (see [Building Windows Releases](#building-windows-releases)) or use the CLI/TUI interfaces directly with Python.
4
4
5
5
Organizes files by extension into dedicated folders to quickly clean up messy directories (like Downloads) on any OS. **Files are moved only within your chosen directory, and an `organization_log.txt` tracks every change so you can review what happened.**
6
6
7
-
**Why this tool?**
7
+
## Why This Tool?
8
+
8
9
-**No network access** — runs entirely locally, your files never leave your machine
9
10
-**Reversible** — complete log file tracks every move for easy review and undo
10
11
-**Automation-friendly** — works great in cron jobs and CI/CD pipelines
11
12
-**Multiple interfaces** — choose web UI, terminal UI, or command-line automation
12
13
-**Cross-platform** — works on Windows, macOS, and Linux
13
14
14
-
## At a Glance
15
-
16
-
-**What it does**: Automatically sorts files into folders by their extension (pdf/, jpg/, txt/, etc.)
-**Quick start**: Recommended for most: download and double-click (no Python/Flask needed)
19
-
- macOS: [Mac-File-Cleanup.zip](https://github.com/StewAlexander-com/File_Cleanup/releases/download/v4.0/Mac-File-Cleanup.zip) (unzip, then double-click the `.app`)
20
-
⚠️ **First run**: If you see a security warning, see [First Run Instructions (macOS)](#first-run-instructions-macos) below.
21
-
- Windows: Build from source (see [Building Windows Releases](#building-windows-releases)) or use CLI/TUI directly
# Only needed for CLI --html; desktop apps already bundle Flask
66
-
pip install Flask
22
+
**Windows**: Pre-built executables are not available. Build from source (see [Building Windows Releases](#building-windows-releases)) or use Python directly:
23
+
```powershell
24
+
python Easy-File-Cleanup.py --html
67
25
```
68
26
69
-
## Quick Start
70
-
71
-
Fastest path: download the desktop app for your OS (no Python/Flask needed):
72
-
- macOS: [Mac-File-Cleanup.zip](https://github.com/StewAlexander-com/File_Cleanup/releases/download/v4.0/Mac-File-Cleanup.zip) — unzip, then double-click `Mac File Cleanup.app`
73
-
⚠️ **First run**: If you see a security warning, see [First Run Instructions (macOS)](#first-run-instructions-macos) below.
74
-
- Windows: See [Building Windows Releases](#building-windows-releases) below to build from source, or use the CLI/TUI interfaces directly
75
-
76
-
Prefer the CLI instead? Use the commands below.
27
+
### Option 2: Command Line
77
28
78
-
### Web Interface (CLI)
79
-
Runs in your browser with a visual directory tree. Requires Flask to be installed:
29
+
**Web Interface** (requires Flask):
80
30
```bash
81
31
pip install Flask
82
32
python3 Easy-File-Cleanup.py --html
83
33
```
84
-
Opens in your browser automatically. See [Web Interface Guide](docs/web.md) for details, features, and troubleshooting.
85
34
86
-
### Terminal Interface (TUI)
87
-
For terminal users who like keyboard navigation and a full-screen text UI.
35
+
**Terminal Interface**:
88
36
```bash
89
-
# Launch the TUI and start in your Downloads folder
90
37
python3 Easy-File-Cleanup.py --tui ~/Downloads
91
38
```
92
-
This opens a full-screen terminal browser. See [TUI Guide](docs/tui.md) for keyboard shortcuts and navigation.
93
39
94
-
### Command Line (Automation)
95
-
For scripts, cron jobs, and power users who want non-interactive runs.
Fully automated, no prompts. See [Automation Guide](#automation--scripting) below or [example script](examples/automation.sh).
100
55
101
-
## Desktop Apps (PyInstaller)
56
+
**Requirements**: Python 3.6+
57
+
58
+
## Desktop Apps
102
59
103
-
**Standalone apps with Python and Flask bundled — no installation required.**
60
+
Standalone apps with Python and Flask bundled — no installation required. Double-click to launch the web UI.
104
61
105
-
Prefer double-click over the command line? Build or download a small desktop launcher for the web UI. The CLI/TUI stay exactly the same.
62
+
### Download
106
63
107
-
-**Download ready-to-run apps (no Python needed)**:
108
-
- macOS: [Mac-File-Cleanup.zip](https://github.com/StewAlexander-com/File_Cleanup/releases/download/v4.0/Mac-File-Cleanup.zip) (contains `Mac File Cleanup.app` — unzip first, then double-click the `.app`) — **Universal app (Intel + Apple Silicon)**
109
-
- Windows: Pre-built `.exe` files are not available due to security restrictions. Please build from source (see [Building Windows Releases](#building-windows-releases) below) or use the CLI/TUI interfaces directly.
-**First run (macOS)**: See [First Run Instructions (macOS)](#first-run-instructions-macos) below for step-by-step instructions.
112
-
-**Run**: Double-click; the web UI opens on `http://127.0.0.1:<port>` and your default browser opens automatically.
113
-
-**Dependencies**: Python and Flask are already bundled in the apps; CLI `--html` still needs `pip install Flask`.
114
-
-**Security**: Localhost-only; the app never exposes your files over the network or internet.
115
-
-**Build yourself (optional)**:
116
-
- Requirements: Python 3.x, Flask (`pip install Flask`), PyInstaller (`pip install pyinstaller`) with support for `--target-arch universal2`
117
-
- macOS: `./scripts/build_gui_mac.sh` (builds a **universal** app that runs on both Intel and Apple Silicon Macs)
118
-
- Windows: See [Building Windows Releases](#building-windows-releases) below for detailed instructions
64
+
-**macOS**: [Mac-File-Cleanup.zip](https://github.com/StewAlexander-com/File_Cleanup/releases/download/v4.0/Mac-File-Cleanup.zip) (Universal app for Intel + Apple Silicon)
65
+
-**Windows**: Not available (build from source — see below)
**⚠️ Important**: Due to Windows 11 security restrictions and Sentinel One false positives, pre-built Windows executables are not provided. To create a Windows executable that avoids security violations, follow these steps:
70
+
**⚠️ Important**: Due to Windows 11 security restrictions and Sentinel One false positives, pre-built Windows executables are not provided.
If you see a security warning when trying to open`Mac File Cleanup.app`, macOS is blocking the unsigned app.
111
+
If you see a security warning when opening`Mac File Cleanup.app`, macOS is blocking the unsigned app.
168
112
169
-
**Quick summary**: Download and unzip the app, try to open it (you'll see a warning), then go to **System Settings → Privacy & Security** and click **"Open Anyway"** next to the blocked app message. Confirm in the popup, then you can run the app normally.
113
+
**Quick fix**: Download and unzip the app, try to open it (you'll see a warning), then go to **System Settings → Privacy & Security** and click **"Open Anyway"** next to the blocked app message. Confirm in the popup.
170
114
171
-
\***Note for Intel Mac users**: If the app won't open even after following the security steps, you may have an older build that only supports Apple Silicon. See the [macOS First Run Guide](docs/macos-first-run.md) for troubleshooting and build instructions.
115
+
**Note for Intel Mac users**: If the app won't open after following security steps, you may have an older build. See the [macOS First Run Guide](docs/macos-first-run.md) for troubleshooting.
172
116
173
-
For detailed step-by-step instructions with screenshots and alternative methods, see the [macOS First Run Guide](docs/macos-first-run.md).
117
+
For detailed step-by-step instructions with screenshots, see the [macOS First Run Guide](docs/macos-first-run.md).
174
118
175
-
## Features
119
+
## Usage
176
120
177
-
### Core Functionality
178
-
- Automatic file organization by extension
179
-
- Duplicate handling (interactive or automatic) — prompts you to overwrite, create copies, or keep both versions
180
-
- Verification of organization — checks moves and logs actions
181
-
- Detailed logging
182
-
- Cross-platform (Windows, macOS, Linux)
121
+
### Command Line Options
183
122
184
-
### Interface Options
185
-
-**Web UI**: Point-and-click interface with visual feedback, graphs, and directory tree ([see guide](docs/web.md))
186
-
-**TUI**: Full-screen terminal browser with keyboard navigation ([see guide](docs/tui.md))
187
-
-**CLI**: Direct command-line operation for automation
123
+
| Flag | Description |
124
+
|------|-------------|
125
+
|`--html`| Launch web interface (requires Flask) |
126
+
|`--tui`| Launch terminal interface |
127
+
|`--yes` / `--non-interactive`| Auto-create copies for duplicates (recommended for scripts) |
128
+
|`--overwrite`| Auto-overwrite duplicates (⚠️ use only if you're certain) |
129
+
|`--quiet`| Minimal output (for automation and cron jobs) |
0 commit comments