Table of Contents
Python
python3 -m pip install watchdog
python3 -m pip install pytest-shutilscrontab -eadd the following replacing <Directory_of_sortypy> with the location of the project files
@reboot python3 <Directory_of_Sortypy>/sortypy.py >> <Directory_of_Sortypy>/cron.log 2>&1reboot
edit config.json and add the source folder directory
edit Rules.json and add as many rules as you like
Rule-p-1 Rule-p-2 Rule-p-3 etc run before
Rule-1 Rule-2 Rule-3 etc
"Active": true, true or false to turn on or off the rule
"Destination" : "", The destination for the sorted files
"Replace": false, true or false to overwrite files if they already exist in the destination directory
"Rename": false, true or false to add a incremental counter to the end of the file name example_1.txt example_2.txt
"Rule_Type": "extension", extension, partial, exact extension matches the extention partial looks for a partial string in the file name exact looks for an exact file name
"Rule_Params": [".docx",".txt",".rtf"],
"Rule_exec": "Move" move, copy to move file or copy it
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- 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
Distributed under the MIT License. See LICENSE.txt for more information.
Your Name - @carter_383 - [email protected]
Project Link: https://github.com/carter383/Sortypy
BTC: bc1qtj0u6x3t724zzucdqznspc6jl3yectstazfc28
ETH: 0xd8aCdeAf6C627D9441017965E06FdaD12Fede17f
VET: 0x9D8f1f2d5DEC1d29846E13c795f3134cd7d566E4
BNB: bnb1xnaeu4q0rwa3v8420qwvrkqa6mjcdwvylvkuj2
Paypal Donation: https://www.paypal.me/3DCarter383