I want to know when a new file is created on a specific directory, instead of scanning the directory from time to time.
I understand that there is a way to make the operating system tell my program that a new file was created. How does it work?
As noted, this has similarities with How to be notified of file/directory change in C/C++, ideally using POSIX