This Python script helps you organize files on your desktop by sorting them into specific folders based on their file types.
- Moves images (JPG, PNG) to an "S-Images" folder.
- Moves PDFs to an "S-Docs" folder.
- Moves TXT files to an "S-Docs" folder.
Note: You can easily modify the script to support additional file types and folders.
- Prerequisites:
- Make sure you have Python 3 installed on your system. You can check by running
python --versionorpython3 --versionin your terminal. - If you don't have Python, download and install it from the official website: https://www.python.org/downloads/
- Download the Script:
- Download the script file (
main.py).
- Run the Script:
-
Open a terminal window and navigate to the directory where you want to arrange the files.
-
Run the script using the following command:
python /path/to/main.py
-
Important Note: This script modifies your file system. It's recommended to back up your desktop files before running the script for the first time.
Simply run the script (python main.py) and it will automatically organize your desktop files based on their types.
If you have any suggestions or want to contribute to expanding the script's functionality, feel free to create a pull request on a forked repository of this project.
This script is provided under the MIT License. See the LICENSE file for details.