I need to watch a directory that is shared on a network for new files. I used inotifywait from inotify-tools and it is great except when the file is added from the other place. For example: I am using laravel Homestead on vagrant. I share my /Code directory. When I vagrant ssh and run inotifywait DirectoryName it will show me when files are added to that directory. If I add it to the same directory on my local environment it does not trigger. I can ls -l and see that the file is there but Inotify never caught it. Any ideas? From my research I know inotify doesn't work great with shared drives but I figured it would show something.Sorry if this would've been better on StackOverflow
inotifywait to monitor shared directory on laravel homestead
directory;inotify;vagrant;shared folders