Skip to content

Action triggered by file/directory change (inotify) #32

@jfbauer432

Description

@jfbauer432

(originally from StreamController/StreamController#206)

While working on a script that I have StreamController run, I thought it would have been nice if there was a way to run the script when some external event occurred (in my case when a file was added or removed from a directory). I used the run every x seconds feature in the OS Run Command action. That works, but does cause the commands to get run a lot when most of the time nothing will have changed.

So I propose that StreamController use inotify (or something similar) and a new config section be added to OS Run Command to specify what kind of event on what file/directory to watch for. When the inotify event is triggered, the specified command is run.

There may be other actions besides OS Run Command, where this would be useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions