This is a simple Python script that automatically cleans up your Downloads folder by categorizing files into corresponding subfolders.
The script scans the Downloads directory and moves files into the following folders (created automatically if not present):
- Images/:
.jpg,.png,.gif,.svg,.webp, etc. - Documents/:
.pdf,.docx,.xlsx,.txt,.md,.csv, etc. - Videos/:
.mp4,.mkv,.avi,.mov, etc. - Music/:
.mp3,.wav,.flac, etc. - Installers/:
.exe,.msi,.iso - Archives/:
.zip,.rar,.7z,.tar - Others/: Any remaining file types.
- Install Python (if not already installed).
- Open Terminal in the project directory.
- Run the command:
python src/main.py
Double-click the run_robot.bat file.
To add or remove file extensions, open src/main.py and edit the ext_to_folder dictionary.
- All actions are recorded in
history.loglocated in the project root folder. - You can check this file to see which files were moved or if any errors occurred.
- The script automatically renames files if duplicates exist (e.g.,
image_(1).png). - The script ignores folders and hidden files.