Easy auto sorting any cluttered folder into descrete categories
Report Bug
·
Request Feature
Table of Contents
We have all been through the most tiring and boring work looking for one important document through cluttered desktop or downloads folder! Yes, it can be partially if not fully solved by sorting the files into specific folder depending on the file extensions. But again, who has the time to sort stuff! Automation can help us here
Here's how:
- Python comes in for the rescue with its immense versatility and ease of use!
- Lets have a watchdog who waits for any changes in the target folder
- Lets make a list of extensions we already know about and the designated folder it should end up in
- Loop through the files and move them with the
move
command ofshutil
library pyinstaller
is used to create an executable to run the script without having to install any other dependancies
A list of commonly used resources that I find helpful are listed in the acknowledgements.
This section should list any major modules that is used in this project.
If you want to test it out locally on your machine. Follow these steps below
Windows Machine : The code is written for windows machine. You can customize it by changing the directory path as required
- Clone the repo
git clone https://github.com/karthikmprakash/cleanDownloads.git
- If you want to Install the executable
cd cleanDownloads\build main.exe
- Install all packages
pip install -r requirements.txt
- Check if your user directory name is same as your user name
import os os.getlogin()
- To convert the python package into a executable
pip install pyinstaller
pyinstaller --onefile -w your_python_file.py
The --onefile
bundles up everything into one file to be executed. -w
is used to when your program does not require command prompt for execution
The project can be reprogrammed to ones requirements, you can set up a routine or any action trigger like environment. for ex:
- Rename files in a folder with a predefined structure.
See the open issues for a list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Open!
Your Name - Karthik M Prakash @karthikmprakash - mkarthikprakash.work@gmail.com
Project Link: https://github.com/karthikmprakash/cleanDownloads