Python File Organizer is a simple automation tool that automatically sorts files into folders based on their file type. The script scans a selected directory, identifies file extensions, creates category folders if they do not exist, and moves files into the appropriate locations.
This project demonstrates Python automation, file system operations, and basic scripting concepts.
- Automatically organizes files by type
- Creates folders automatically when needed
- Supports images, documents, videos, and archive files
- Reduces manual file management
- Easy to customize with additional file categories
- Python 3
- os module
- shutil module
| Category | File Types |
|---|---|
| Images | .jpg, .jpeg, .png, .gif |
| Documents | .pdf, .docx, .txt |
| Videos | .mp4, .avi, .mov |
| Archives | .zip, .rar, .7z |
FileAutomationProject/
├── file_organizer.py
└── test_files/
├── Images/
├── Documents/
├── Videos/
└── Archives/
photo.jpg
resume.pdf
notes.txt
movie.mp4
archive.zip
Images/photo.jpg
Documents/resume.pdf
Documents/notes.txt
Videos/movie.mp4
Archives/archive.zip
- Install Python 3.
- Place files inside the test_files folder.
- Open a terminal in the project directory.
- Run:
python file_organizer.py
- The files will be automatically sorted into their respective folders.
- Python Programming
- Automation
- File Management
- Problem Solving
- Technical Documentation
- File System Operations
Joel Khati