In the directory that you want organised, create a rule.toml file, with the first line defining the 'mode' of the rules. Individual modes have different criteria for valid rules, but follow the same pattern:
You can now have multiple rulefiles in a single directory, following the pattern rules01.toml, number them in order of importance
The extension mode defines a list of file extensions. If newly created files have extensions that appear in that list, they are moved to the specified directory. Here is a standard example file:
Script mode is complicated and should be used with caution. It's good for hacks and esoteric operations. First, create a rule.toml that looks like this:
Then your script just needs to have a function called main that takes in a filename as an argument. In this example, if a file has a .zip extension, we extract it and then delete the zip file.
Each mode is a python file that contains at least one function called make_mover. This function returns a function that will move a file if a condition is met. Take a look through the modes directory for inspiration