I want to monitor a directory for new files, which will be created by another process. I plan to use incrod
to do this.
I am not interested in reacting to changes in files, as the files should never be updated. Therefore the IN_CREATE
event seems the sensible option to listen for. However, I am unsure, if I listen for that event, could I end up with an empty file (before the other process has written any information to it)? Should I use the IN_WRITE_CLOSE
event instead?