inotify is a POSIX library that would help meet the need.
It apparently has not been ported to Cygwin as a regular
package, though Windows has the necessary underlying ability.

However, this suggests that you can fairly easily build a
program to help:

https://github.com/thekid/inotify-win

It seems to build and work reasonably well.

Another angle is this Qt library (though I am not sure if it
works under Cygwin):

https://doc.qt.io/qt-5/qfilesystemwatcher.html

Best - Eliot Moss

--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to