Skip to content

carter383/Sortypy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


SortyPy

Python Automated file organizer
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Contributing
  5. License
  6. Contact
  7. Donate

About The Project

(back to top)

Built With

Python

(back to top)

Getting Started

Prerequisites

python3 -m pip install watchdog
python3 -m pip install pytest-shutils

Installation

crontab -e

add 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>&1

reboot

(back to top)

Usage

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

(back to top)

Contributing

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!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

Distributed under the MIT License. See LICENSE.txt for more information.

(back to top)

Contact

Your Name - @carter_383 - [email protected]

Project Link: https://github.com/carter383/Sortypy

(back to top)

Donate

BTC: bc1qtj0u6x3t724zzucdqznspc6jl3yectstazfc28

ETH: 0xd8aCdeAf6C627D9441017965E06FdaD12Fede17f

VET: 0x9D8f1f2d5DEC1d29846E13c795f3134cd7d566E4

BNB: bnb1xnaeu4q0rwa3v8420qwvrkqa6mjcdwvylvkuj2

Paypal Donation: https://www.paypal.me/3DCarter383

(back to top)

About

Python automated file sorter

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages