Organize - The file management automation tool

While looking for a way to keep my files sorted, I came across Organize ( https://github.com/tfeldmann/organize ). Organize is a flexible python script that given a set of rules will keep your files sorted with ease.

The following are the steps I used to get it up and running;

  1. Clone the git repo:
git clone https://github.com/tfeldmann/organize.git
  1. Once cloned change to organize folder and build the docker image:
 docker build -t organise .
  1. Create a config file for organize to read the rules from:
touch docker-conf.yml
nano docker-conf.yml
  1. Add the following initial rule:
rules:
   - locations: /data
    actions:
       - echo: "Found file: {path}"
  1. Run the container:
 docker run -v ./docker-conf.yml:/config/config.yml -v /Users/[USERNAME]/:/data organise run

This command uses the docker-conf.yml file from the current folder and passes it in to the container under the path /config/config.yml. It also passes the users home path, in this case /Users/[USERNAME]/ as the /data folder to the container. Note the value of the locations parameter in the above config is based of /data/

My next task is to work out the best option to trigger organize so the rules are run automatically. Options I have found so far are Automator and Crontab.