This Python script is based on Kalle Hallden's YouTube video to move the files downloaded with Google Chrome to the Downloads folder to folders based on the file extension inside a new folder called "Descargas".
IMPORTANT: It's important to note this script only works with downloads from Google Chrome. If the script is running and another browser downloads a file, most likely the download will fail.
Clone the directory or download the latest release.
Once you have downloaded the code update the config.yml
to use the correct
paths to the Downloads folder and the "new" Downloads folder (by default
called Descargas).
The last config value, ignore_file, can be ignored or you can chose to move the
README!.txt
file to your original Downloads folder to remind you of where the
downloads are going in case you forget.
Conda was used to manage the environment. If you desire to use pip to download
the packages for the project just look at the environment.yml
file for the
necessary packages.
To create the same environment with all the packages for that the script needs run the following command in your CLI:
conda env create -f environment.yml
Verify the environment was created by checking that the environment mv_dwnlds
exists when running:
conda info -e
To activate the environment execute in the CLI:
conda activate mv_dwnlds
The script was made to be executed in the background. The Makefile included has targets to run, stop or restart the sript in the background.
To run the script in the background with using the Makefile, make sure you're inside the project directory where the Makefile is and execute:
make start
To stop the script in the background you can do:
make stop
To restart the script (make stop
followed by make start
) you can do:
make restart