Automate sorting of the downloaded files according to their type.
If you are a windows of mac user this instruction will not work properly. You can run the script just like a normal python script but this instruction doesn't contain any ways to run the script at startup in windows or mac.
Clone this repository using this command:
git clone https://github.com/shihabalratul/download_sorter.gitOpen the file and install the dependencies:
cd download_sorter
pip3 install -r requirements.txtOpen download_sorter.py file and set the download directory path to the source variable like this:
source='/home/user/Downloads'and save.
Run the script at startup:
Open terminal and run:
crontab -eAdd this line at the bottom with the directory of this file:
@reboot /usr/bin/python3 [file_directory]/download_sorter.py
Here replace the [file_directory] with the full directory the script.
Download or copy anything in the download folder and see the magic.