I would like to monitor and detect if a new file is created on a mounted folder in linux using c++.
I understand that inotify can be used only if the folder is local.
None of the common remote filesystems support notification.
The only general way to monitor a remote directory is via polling.