I have created simple Python program that automatically organizes files in a folder based on their file type.
- It will scans a folder (like Downloads)
- It will checks file extensions (pdf, jpg, mp3, etc.)
- It will creates folders if they don’t exist
- Moves files into the correct folders
Before
Downloads/
file.pdf
image.jpg
song.mp3
After
Downloads/
Documents/file.pdf
Images/image.jpg
Music/song.mp3
- Python
- os module
- shutil module
- time module
(All are built-in Python libraries)
- Clone or download this project
- Open the Python file
- Set the folder path:
SOURCE_FOLDER = "C:/Users/YourName/Downloads"- Run the program:
python file_organizer.py- Organize files once
- Auto organize every 10 seconds
- Exit
To practice Python basics and learn how automation works.
Uttam Prajapat