This project automates the organization of files inside a folder using Python.
It scans files, detects their extensions, and automatically moves them into
organized folders (PDFs, Images, Text).
The goal of this project is to practice Python automation and reduce manual file management tasks.
- Scans a source folder (
downloads) - Detects file extensions
- Creates folders automatically if they donβt exist
- Moves files to the correct folder based on type
Before running the script: downloads/ βββ report.pdf βββ image.png βββ notes.txt
After running the script: downloads/ βββ PDFs/ β βββ report.pdf βββ IMAGES/ β βββ image.png βββ Text/ β βββ notes.txt
- Python
- os module
- shutil module
- Clone the repository
- Create a folder named
downloads - Add sample files (pdf, images, txt)
- Run:
python main.py