File Organizer
A Python CLI that sorts a messy folder into subfolders by file type. This page runs the real algorithm: the same categorization, --dry-run preview, collision-safe renaming, and undo. Try the built-in sample, or pick a real folder and it will actually organize it.
How it works
Extension to category
Each extension maps to one of six buckets (Images, Documents, Audio, Video, Archives, Code). Unknown extensions go to Other instead of getting skipped.
Collision-safe renaming
If the destination name is taken, the file becomes report_1.pdf, then report_2.pdf. Nothing is ever silently overwritten.
Dry run, then undo
--dry-run prints every planned move without touching a file. Real moves get logged as they happen, and undo replays that log backwards.
SandboxThe folder below is a made-up sample. In this mode nothing on your computer is read or touched. To organize your own files, use Choose a real folder below.
the folder into category subfolders. Dry run is on by default. Turn it off and confirm to move for real. Nothing is ever overwritten, and Undo reverses the last run. Grant access only to a folder you're comfortable rearranging (your Downloads is a good candidate).
Sample mode: flip on Dry run and hit Organize to preview, or Add new downloads (drops in a name that's already taken) then Organize to see collision-safe renaming. Real mode: click Choose a real folder, grant access, preview with Dry run, then turn it off to actually sort your files. Requires Chrome or Edge, and a normal folder like Downloads (browsers block drive roots and system folders).