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;
- Clone the git repo:
git clone https://github.com/tfeldmann/organize.git
- Once cloned change to
organize
folder and build the docker image:
docker build -t organise .
- Create a config file for organize to read the rules from:
touch docker-conf.yml
nano docker-conf.yml
- Add the following initial rule:
rules:
- locations: /data
actions:
- echo: "Found file: {path}"
- 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/