Sure! Here is the content for the README.md file:
# File Segregator Script
This script helps organize files in the Downloads directory by segregating them into respective subdirectories based on their file types.
## Prerequisites
- Python 3.x
- Windows (This script is designed for Windows environment)- Clone the repository to your local machine:
git clone https://github.com/Someone-who-loves-coding/File-Segregator.git- Navigate to the cloned directory:
cd File-Segregator- Install dependencies:
pip install -r requirements.txtThis script sets up a Task Scheduler entry to automatically run the file segregation script at system startup.
To set up the Task Scheduler entry, run the following command with administrative privileges:
python setup_task.pyTo remove the Task Scheduler entry, run:
python setup_task.py removeThe monitor_downloads.py script monitors the Downloads folder and triggers the file segregation script whenever a new file is downloaded.
This script will be automatically started at system startup after setting up the Task Scheduler entry. You do not need to run it manually.
The makemydir.py script creates a directory with the current date within the 'Downloads' directory and segregates files into respective subdirectories based on their file types.
This script is automatically called by monitor_downloads.py when a new file is detected.
This script sets up and removes the Task Scheduler entry to run monitor_downloads.py at system startup.
This script monitors the Downloads directory for new files and runs makemydir.py to segregate them.
This script creates a directory with the current date within the 'Downloads' directory and segregates files into respective subdirectories based on their file types.
No additional settings are required. The script automatically detects the Downloads directory and segregates files based on their extensions.
- Ensure you run
setup_task.pywith administrative privileges to create the Task Scheduler entry. - The script will automatically handle starting at system startup, monitoring the Downloads folder, and segregating files without any manual intervention from the user.
- Make sure the scripts are all located in the same directory for proper execution.