This file automater is a python script that monitors the downloads folder for file movements. Depending on the file endings contained within the JSON file, files will be moved to the allocated folder. This is particularly useful for organizing files in real-time, such as keeping track of documents for a specific course or project
- The watchdog library observes the Downloads folder for specific extensions
- The "on_moved" function automatically moves matching files to a predefined folder
- All file system event handling is dealt with the watchdog library
- Open the script file_automater.py in a text editor
- Modify the following variables if needed
- 'destination_folder': The folder where files will be moved
- 'path': the folder being monitored
- Run the script:
- python file_automater.py
- The script will continue running, monitoring the folder in real-time for any file movements. If a file with a matching extension is moved into the folder, the script will automatically move it to the specified destination folder
- Python 3.x
- Watchdog library(pip install watchdog)