A safe, interactive Python CLI that organizes any folder on your PC.
- By type β Images, Videos, Music, Documents, Code, Archives, etc.
- Screenshots β by day β
Screenshots/2026-05-26/...(reads date from filename, falls back to file mtime) - Patterns inside Documents β auto-detects: Bills, Salary, Bank, Tax, Notes, Books, Resumes, Reports, Meetings, Contracts, Tickets, Certificates, IDs
- Code β Scripts β
automation_script.py,deploy_script.sh, etc. go underCode/Scripts/ - Duplicate detection β pick at runtime: file hash (accurate), name + size (fast), or both
- Summary markdown β
ORGANIZATION_SUMMARY.mdis written into the organized folder with a tree view and a per-folder file list - Undo β every run saves a
.undo.jsonso you can revert later
- Files are copied into a new folder
<source>_Organizedsitting next to your source folder β your originals are never touched during organization. - After it finishes, you're asked what to do:
- Keep organized copy and delete originals (asks one more confirmation)
- Keep both
- Revert β delete the organized folder, originals untouched
- Even after deleting originals, Undo can restore everything from the organized copy.
- Python 3.8+ (no third-party packages β uses only the standard library)
- Works on Windows, macOS, Linux
python organize.pyThen follow the prompts. Pick option 1 to organize, 2 to undo a previous run.
Open organize.py, scroll to PATTERN_RULES, and add a tuple:
("MyLabel", re.compile(_S + r"(?:keyword1|keyword2)" + _E)),The _S and _E helpers handle word boundaries correctly across _, -, spaces, and dots.