Sometimes you want to know if a certain App/code/IDE changed something on the disk, this little script / command may come in handy.
install fswatch as a global command
brew install fswatch
Only fswatch is not enough, here is the script that does the trick
fswatch -0 $@ | while read -d "" event; \
Save as a script e.g. monitor.sh, then give it executable permission
chmod +x monitor.sh
Now run the script and supply the path as parameter, and you will start monitoring the directory