A lightweight Python script that automatically sorts files in a specified folder into categorized subfolders based on file type. Runs in the background and organizes on a set schedule.
On startup, the script asks for a folder path to monitor. It then sorts any files it finds into the following subfolders:
| Folder | File Types |
|---|---|
| Images | .jpg, .jpeg, .png, .gif, .svg |
| Videos | .mp4, .mov, .avi |
| Documents | .pdf, .docx, .txt, .xlsx |
| Audio | .mp3, .wav |
| Code | .py, .js, .html, .css |
| Archives | .zip, .rar, .tar.gz |
| Installers | .exe, .msi |
The script runs immediately on launch, then repeats every 3 minutes automatically.
The script blocks organization of the following system directories to prevent system damage:
C:\WindowsC:\Program FilesC:\Program Files (x86)C:\System32
- Python 3.x
schedulelibrary
Install dependencies:
pip install schedule
Before using Open the file with notepad or any other IDE and edit the folder variable to your desired folder and done
python organizer.py
To run silently in the background on startup, add it to Windows Task Scheduler using pythonw.exe.
This project is fully open source. You are free to read, audit, and verify the code for any malicious behavior. No data is collected, no network requests are made, and no external services are used.
MIT License — free to use, modify, and distribute.