A simple Python script that organizes files in your directory into subfolders based on their file type.
Example: .jpg → Images/, .pdf → Documents/, .mp3 → Music/, etc.
- Automatically creates folders for each file type
- Works on Windows, macOS, and Linux
- Categorizes images, documents, videos, archives, and more
- Less than 100 lines of Python code (Hacktoberfest-friendly 🎉)
- Python 3.6 or higher
- No external dependencies (uses built-in modules:
os,shutil,pathlib)
Clone this repository and navigate into the project folder:
git clone https://github.com/sumanth-0/100LinesOfPythonCode.git
cd 100LinesOfPythonCode
cd "#878_TERMINAL_FILE_ORGANIZER"python3 terminal_file_organizer.py