A Python automation script that declutters your folders (like Downloads) by automatically organizing files into subdirectories based on their file extensions.
- Automatic Sorting: Categorizes files into Images, Documents, Videos, Music, Archives, etc.
- Customizable: Easily add new file types or categories in the configuration dictionary.
- Safe: Creates folders if they don't exist and handles unknown file types.
- Clone the repository:
git clone https://github.com/yourusername/file-organizer.git
- No external dependencies required! (Uses standard library).
- Open
main.py. - Set the
TARGET_DIRvariable to the folder you want to organize (e.g.,C:/Users/You/Downloads). - Run the script:
python main.py
- Watch your files get instantly sorted!
- Images: .jpg, .png, .gif...
- Documents: .pdf, .docx, .txt...
- Videos: .mp4, .mkv...
- Music: .mp3, .wav...
- Archives: .zip, .rar...