Skip to content

Python Automation Idea from Kalle Halden's YouTube video to automatically move files downloaded to the Downloads folder to organize them based on the file type.

Notifications You must be signed in to change notification settings

mpofukelvintafadzwa/mv_dwnlds

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Move Downloads

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.

Installation

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.

Python Environment

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.

Create Conda Environment

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

Activating the Environment

To activate the environment execute in the CLI:

conda activate mv_dwnlds

Running the Python Script

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

About

Python Automation Idea from Kalle Halden's YouTube video to automatically move files downloaded to the Downloads folder to organize them based on the file type.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 84.5%
  • Makefile 15.5%