A simple yet powerful Python script that automatically organizes your downloads folder by monitoring file changes and moving them into appropriate subfolders (audio, video, images, documents, etc.) using the watchdog library.
- π¦ Real-time folder monitoring
- π΅ Automatically detects and moves audio (music/SFX) files
- π¬ Sorts video files to a dedicated directory
- πΌοΈ Organizes images into an image folder
- π Moves documents like PDFs, Word, Excel, etc.
- π§ Intelligent size-based detection for SFX vs Music
- π₯ Handles file name conflicts with unique renaming
- π Python 3
- π¦ watchdog
- π os, shutil, time, logging
- Watches the Downloads directory continuously.
- When a file is added or modified, it checks its type and moves it:
.mp3,.wavβ/musicor/sfx(based on size).mp4,.avi, etc. β/video.jpg,.png, etc. β/image.pdf,.docx,.xlsx, etc. β/documents
- If a file with the same name exists in the destination, a unique name is generated (e.g.,
file(1).pdf).