direvent

Monitors file system directory events and executes actions

brewmacoslinux
Try with needOr install directly
Source

About

Monitors events in the file system directories

Commands

direvent

Examples

Monitor a directory for any changes and log them$ direvent -d /path/to/directory
Execute a command when files are created in a directory$ direvent -c /path/to/directory -a 'create' -x 'echo File created'
Monitor multiple directories with a configuration file$ direvent -f /etc/direvent.conf