On Linux

Monitor file changes in a folder

inotifywait -mr -e create -e delete -e move <folder>