A python tool to automatically distribute the files to specific folders to organize it efficiently.
- Accepts any folder path as input
- Automatically sorts files by type:
- Images (.jpeg, .jpg, .png) → images/
- PDFs (.pdf) → pdfs/
- Data files (.csv) → data/
- Documents (.docx, .txt) → documents/
- Skips unknown file types gracefully
- Creates destination folders automatically
| Extension | Destination |
|---|---|
| .jpeg, .jpg, .png | images/ |
| pdfs/ | |
| .csv | data/ |
| .docx, .txt | documents/ |
| .exe | software/ |
| .py | python_files/ |
| .zip | zip_files/ |
| .pptx | presentations/ |
| .java | java_files/ |
python organizer.pyEnter the file to be organized:test_file
Graph.jpeg -> goes to -> images
Skipping images - unknown type
Introduction_to_algorithms-3rd Edition.pdf -> goes to -> pdfs
LogisticRegression.jpeg -> goes to -> images
Skipping pdfs - unknown type
Team_Group2_Proposal.pdf -> goes to -> pdfs
Organization complete! ✅
- Python 3
os- file and folder operationsshutil- moving files between directories