This Python script helps to organize your downloads folder by moving files into respective directories based on their file extensions. It creates directories for images, videos, software, documents, archives, and other specified file types, and then moves the files accordingly.
- Automatically creates directories if they don't exist.
- Moves files based on their extensions to the appropriate directory.
- Supports a wide range of file types including images, videos, software, documents, and archives.
- Images:
.jpg
,.jpeg
,.png
,.gif
,.svg
,.bmp
,.tiff
,.heic
,.webp
- Videos:
.mp4
,.mkv
,.flv
,.avi
,.mov
- Software:
.exe
,.msi
,.dmg
,.pkg
- Documents:
.pdf
,.doc
,.docx
,.xls
,.xlsx
,.ppt
,.pptx
,.txt
- Archives:
.zip
,.rar
,.tar
,.gz
,.bz2
- Python 3.x
1. Open the python script and replace the path with the path where you want to run the script.
2. Save the script as organize_downloads.py.
3. Open a terminal or command prompt.
4. Navigate to the directory where your script is saved.
5. Run the script using python organize_downloads.py.