Hi!
Have you ever fresh-installed your OS and saw how beautiful and clean were the folders inside it, but after a while using it and downloading much stuff from the internet you were not able anymore to easily find something inside your Downloads Folder?
Your problems are solved!!!
This is a simple cross-platform project that aims to organize your Downloads Folder by moving new files from it to other folders.
E.g.: If you download an image file, it wil be moved into your Pictures folder. The same could be for a document file or any other file that you can get a pattern from.
First you need to set up the environment by running pip install -r requirements.txt
(it is recommended to use a virtual environment).
Then you can simply run the main script by executing: python -m downloads_watcher
.
You can edit the extensions you wish to track and the destination folders on bin/settings.json
.
But here is a snippet from it anyway:
{
"file_patterns": {
"Pictures": ["*.png", "*.jpg", "*.jpeg", "*.exif", "*.tiff", "*.gif", "*.bmp"],
"Documents/TextFiles": ["*.txt"],
"Documents/PDFFiles": ["*.pdf"],
"Documents/DocFiles": ["*.doc", "*.docx"],
"Documents/ExcelFiles": ["*.csv", "*.xls"]
},
"watch_folder_path": "C:/Users/LuisHenri/Downloads"
}
It is also possible to create an executable from it in order to make it simpler to run it at startup.
To do so, install pyinstaller
by either running pip install -U pyinstaller
or pip install -r requirements-dev.txt
.
After finished, you can simply run pyinstaller --clean main.spec
and it will create a DownloadsWatcher
executable inside a dist
folder.
NOTE: It will have an
.EXE
extension if compiled on Windows or NO extension at all if compiled on Linux.
Now you just need to set your OS to run it at startup: