This script automates the organization of your downloaded files.
Use the package manager pip to install watchdog.
pip install watchdog
First, you need to clone the repository.
git clone https://github.com/CodeByGab/download-file-organizer.git
cd download-file-organizer
Now, edit the path to your download path folder.
The example given is for a Windows directory, but you can change it to a directory path compatible with your OS.
# Put your Download Directory
# Or just the Path you want to organize / watch
download_file_path = "C:\\Users\\{Your-User}\\{Your}\\{Path}\\{Here}"
Then, you can run the script.
python3 fileOrganizer.py
Pess CTRL + C
in prompt to stop the script.
If you want to run the code at the same time your Windows starts, follow these steps:
- Press
win + r
- Type
shell:startup
into the Run window - Copy the script to the Startup folder
- Change the extension to
.pyw
instead of.py
if you don't want to see the prints on prompt (It will run in background) - Optional - Convert the script to .exe
Tip: run the code first with the.pyw
extension before restart your pc, just to ensure the code runs correctly.
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.