File Organizer Project Documentation
File Organizer Project Documentation
import os
import shutil
FILE_CATEGORIES = {
"Images": [".jpg", ".jpeg", ".png", ".gif", ".bmp", ".tiff"],
"Documents": [".pdf", ".doc", ".docx", ".txt", ".ppt", ".pptx", ".xls", ".xlsx"],
"Videos": [".mp4", ".mkv", ".mov", ".avi", ".flv"],
"Music": [".mp3", ".wav", ".aac", ".flac"],
"Archives": [".zip", ".rar", ".tar", ".gz", ".7z"],
"Code": [".py", ".js", ".html", ".css", ".java", ".c", ".cpp", ".rb", ".php"],
"Others": []
}
# ... (Complete code goes here)
6. User Guide
To use the File Organizer script, follow these steps:
1. Install Python on your system.
2. Save the script in a folder on your computer.
3. Run the script using a terminal or command prompt.
4. Enter the directory path you want to organize when prompted.
5. The script will organize the files into categorized folders.
7. Future Enhancements
The File Organizer can be enhanced with the following features:
- A graphical user interface (GUI) for better user interaction.
- Integration with cloud storage services like Google Drive and Dropbox.
- Machine learning algorithms to categorize files based on their content.
- Multi-directory support to organize files across multiple folders.