I want to know when a new file is created in a specific directory, and not scan the directory from time to time.
I understand that there is a way to get the operating system to inform my program that a new file has been created. How it works?
As already noted, this is similar to How to get notified of a file / directory change in C / C ++, ideally using POSIX
linux windows file operating-system
Liran orevi
source share