I am developing my program on Linux, is there a programmatic way to detect when another application creates/copies a file under/to a specific folder. I want to detect the new file as fast as it is created and I would like to process the file.
As far as I researched I can accomplish this using inotify. Are there any better alternatives?