dir-watcher

command module
v0.0.0-...-35faee6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2024 License: MIT Imports: 3 Imported by: 0

README

dir-watcher

My automation for making sure the Downloads folder doesn't get messy.

What does it do?

It watches one or more directory for file system changes, moving old and new files to other directories where these files feel more appropriate in. For example:

"family-photo.jpeg" > /home/user/Pictures "important-paper.pdf > /home/user/Documents/PDF

Rules

The program uses a JSON file to know where to move files to. This JSON uses the example schema:

{
    "watch": [
        "~/Downloads"
    ],
    "move": [
        {
            "path": "~/Pictures",
            "ext": [
                "png",
                "webp",
                "svg",
                "jpeg",
                "jpg",
                "tff"
            ]
        }
    ],
    "unknown": "~/Misc"
}

An extensive example can be seen in rules.json.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL