Ever opened your Downloads folder and found thousands of random PDFs, screenshots, ZIPs, installers, and school files mixed together?
Intelligent File Organizer automatically transforms chaotic directories into clean, categorized structures β while protecting important folders, preventing accidental file scattering, and giving you full control through both CLI and GUI modes.
A modular, production-ready Python tool that automatically sorts messy directories into clean, categorized folder structures β with an architecture designed to grow into an AI-powered personal file management system.
| Feature | Status |
|---|---|
| Extension-based categorization | β |
| MIME-type fallback | β |
| Duplicate handling (counter / timestamp / skip) | β |
| Preview / dry-run mode | β |
| Recursive directory scanning | β |
Dash-folder exclusion (-FolderName β Excluded/) |
β |
| JSON & YAML config files | β |
| Structured logging (console + rotating file) | β |
| Custom categorization plugins | β |
| Dependency auto-installer (bootstrap) | β |
| CustomTkinter GUI | β |
| Version management & update notifications | β |
| CLI update notice (startup check) | β |
| GUI update dialog (non-blocking, background) | β |
| AI classification hook | π plug-in ready |
| Real-time folder monitoring (watchdog) | π Phase 2 |
| SQLite file history database | π Phase 3 |
| AI / OCR smart sorting | π Phase 4 (optional) |
| EXE auto-updater | π Future |
- β‘ Organize thousands of files in minutes
- π‘οΈ Protect important grouped folders automatically
- π Preview all actions before moving files
- π₯οΈ Use either CLI or modern GUI mode
- π Automatic dependency installation support
- π§ Built for future AI-powered organization
- π Prevent accidental folder scattering
# 1. Clone / download the project
git clone https://github.com/YTUpronicGamergaming/IntelligentFileOrg.git
cd intelligent_file_organizer
# 2. (Optional) Create virtual environment
py -m venv venv
source venv/bin/activate # Windows: venv\Scripts\activate
# 3. Install dependencies
pip install -r requirements.txt
# 4. Preview what will happen β no files moved
py main.py /path/to/your/downloads --preview
# 5. Run for real
py main.py /path/to/your/downloads
# 6. Organise into a separate output folder
py main.py ~/Downloads --output ~/Organized
# 7. Launch GUI
py main.py --guiIf required dependencies are missing, the built-in bootstrapper can automatically install them from requirements.txt and retry execution automatically.
py main.py SOURCE_DIR [OPTIONS]-
--output, -o DIROutput directory (defaults to SOURCE_DIR) -
--config, -c FILECustom JSON or YAML config file -
--preview, -pDry-run: show planned moves without executing -
--recursive, -rScan subdirectories recursively -
--duplicate-strategycounter | timestamp | skip -
--no-log-fileConsole-only logging -
--log-file FILECustom log file path -
--verbose, -vEnable DEBUG output -
--no-exclude-dash-foldersDisable dash-folder exclusion and scan-Foldersnormally -
--guiLaunch CustomTkinter GUI
intelligent_file_organizer/
β
βββ main.py β CLI entry point (argparse + update notice)
βββ gui.py β CustomTkinter GUI (update dialog, log panel)
βββ bootstrap.py β Dependency auto-installer
βββ config.json β Extension mappings, settings, app metadata
βββ requirements.txt
β
βββ organizer/
βββ __init__.py
βββ core.py
βββ config_manager.py
βββ version_controller.py
βββ logger.py
βββ scanner.py
βββ categorizer.py
βββ duplicate_handler.py
βββ mover.py
tests/
βββ test_organizer.py
The app automatically checks GitHub releases for newer versions.
- Background update checking
- GUI update dialog
- CLI startup notification
- Semantic version comparison
- Silent offline fallback
- Non-blocking GUI behavior
When a new version is available:
-
Shows current vs latest version
-
Provides:
- [Update Now]
- [Later]
-
Opens GitHub releases page directly
π UPDATE AVAILABLE
Current Version : v1.1.0
Latest Version : v1.2.0
Download:
https://github.com/YTUpronicGamergaming/IntelligentFileOrg/releases
Planned future support includes:
- Automatic
.exedownloads - In-app updater
- Silent updates
- Rollback support
Folders beginning with - are treated as protected folders.
Examples:
-Personal-Archive-School
Behavior:
- excluded from recursive scanning
- contents remain untouched internally
- moved intact as complete folders
- configurable in GUI, CLI, and config
This prevents important grouped folders from being accidentally scattered during organization.
{
"app": {
"name": "Intelligent File Organizer",
"version": "1.1.0",
"github_repo": "YTUpronicGamergaming/IntelligentFileOrg"
},
"settings": {
"duplicate_strategy": "counter",
"recursive": false,
"preview_mode": false,
"skip_hidden_files": true,
"exclude_dash_folders": true,
"excluded_folder_name": "Excluded",
"uncategorized_folder": "Uncategorized"
}
}YAML format is also supported.
# All tests
py -m pytest tests/ -v
# Coverage
py -m pytest tests/ --cov=organizer --cov-report=term-missing- Extension + MIME categorization
- Duplicate handling
- Recursive scanning
- Preview mode
- Dash-folder exclusion
- Plugin architecture
- Dependency bootstrapper
- CustomTkinter GUI
- Version controller
- GUI update dialog
- CLI update notifications
- Semantic version comparison
- Real-time folder watcher
- Background monitoring service
- Task Scheduler integration
- SQLite history database
- Undo system
- File metadata indexing
- Search system
- OCR support
- Receipt/document detection
- AI semantic tagging
- Smart suggestions
- Silent
.exeupdates - In-app updater UI
- Rollback support
- Scheduled update checks
- The organizer never deletes files β it only moves them.
- Always run
--previewfirst on important directories. - Dash-folders are handled as intact folder units.
- File permissions are preserved by
shutil.move. - The update checker only makes a small HTTPS request to GitHub releases.
- No local file data is uploaded or transmitted.
MIT β free to use, modify, and distribute.