Turn chaos into order โ automatically organize your files with a single command.
This is a Python-based CLI automation tool that scans a directory and organizes files into structured folders based on their type.
Instead of manually sorting files, this tool does it instantly and efficiently.
โ Automatically detects file types โ Creates folders dynamically (Images, Documents, etc.) โ Moves files into appropriate directories โ Skips system files and folders safely โ Clean and scalable logic using Python
The script:
- Scans all files in the current directory
- Identifies file extensions
- Matches them with predefined categories
- Creates folders if they donโt exist
- Moves files into their respective folders
| Category | File Types |
|---|---|
| ๐ธ Images | .jpg, .png, .jpeg |
| ๐ Documents | .pdf, .txt, .md |
| ๐ฌ Videos | .mp4 |
| ๐ง Audio | .mp3 |
| ๐ฆ Others | Everything else |
- ๐ Python
- ๐ os module (file handling & automation)
Before:
main.py
file.pdf
photo.jpg
song.mp3
notes.txt
After running the script:
Images/
photo.jpg
Documents/
file.pdf
notes.txt
Audio/
song.mp3
main.py
python main.py
Make sure your files are in the same directory as the script.
- Working with the os module
- Handling file systems in Python
- Writing clean and scalable logic
- Building real-world automation tools
- Managing projects using Git & GitHub
- Accept custom directory paths (user input)
- Add logging system for file movements
- Build interactive CLI interface
- Develop GUI version (Tkinter / Web UI)
Built by Mehfooz Aspiring backend developer focused on real-world problem solving and automation.
This project reflects a shift from learning syntax โ building solutions.
If you found this useful or interesting, consider giving it a โญ