A Python script to automatically sort and organize files by type. #opensource #utility
A simple Python script to automatically organize files in a folder by type — images, documents, videos, music, and more.
- Automatically detects and moves files into categorized folders
- Supports common file types (PDFs, images, videos, etc.)
- Moves unknown types into an "Others" folder
- Easily customizable
| Category | Extensions |
|---|---|
| Images | .jpg, .png, .gif, .bmp |
| Documents | .pdf, .docx, .txt, .xlsx, .pptx |
| Videos | .mp4, .mov, .avi, .mkv |
| Music | .mp3, .wav, .aac |
| Archives | .zip, .rar, .tar, .gz |
| Scripts | .py, .js, .html, .css |
- Download the code zip
- In terminal download python3 if not already downloaded
- enter : cd #path to auto file orgainzer
- enter : python3 auto_organizer.py
- enter : the path of the folder you want to organize.
- Let the script sort your chaos.
Example Before: Downloads/ ├── file1.pdf ├── photo1.jpg ├── song.mp3 ├── video.mov
After: Downloads/ ├── Documents/ │ └── file1.pdf ├── Images/ │ └── photo1.jpg ├── Music/ │ └── song.mp3 ├── Videos/ │ └── video.mov
Made by Mariyam – because I hate digital clutter.