File Organizer is a Python script designed to monitor the browser on your system and organize downloaded files into folders based on their types. It works seamlessly in the background, ensuring your downloads are neatly categorized without any manual effort.
- Automatically organizes files in the Downloads folder and Desktop into categorized folders based on their file types.
- Supports various file types including PDFs, images, HTML files, text files, spreadsheets, presentations, audio files, video files, fonts, archives, executables, scripts, Word documents, and more.
- Handles duplicates by appending a suffix to the filename to ensure no files are overwritten.
- Provides user-friendly messages to indicate the start and stop of the file organizer, as well as error messages for missing folders and permission issues.
- Detects when a browser process is running.
- Starts to organize when a browser is detected, allowing seamless organization of downloaded files while browsing.
- Python 3.x
- watchdog
- psutil
- errno
-
Clone or download the repository to your local machine.
-
Install the required dependencies using pip:
pip install -r requirements.txt
- Run the scripts:
-
For Windows:
- Double-click the
windows.bat
file.
- Double-click the
-
For macOS and Linux:
-
Execute the following command in your terminal:
sh unix.sh
-
- Once the script is running, it will continuously monitor the Downloads and Desktop directory in the background.
- You can customize the file organization logic by modifying the main Python script (
script.py
).
This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! Feel free to open an issue or submit a pull request.
- psutil - Cross-platform library for retrieving information on running processes and system utilization in Python.
If you encounter any issues or have questions, please feel free to open an issue.