inotify is a program that monitors a directory for new or changed files.
sudo pacman -S inotify-tools