bcc-code / bcc-media-utils

[BCC Media] Random small utils that do not really deserve a whole repo each
MIT License
0 stars 0 forks source link

implement a file watcher #7

Closed fredrikvedvik closed 1 year ago

fredrikvedvik commented 1 year ago

A simple file watcher that listens to specific folders and sends a callback to specified url.

Checks for file changes every 5 seconds, and if a file was changed in a previous cycle but not in the current, a http get request is triggered to the specified callback.