Search code examples
c++linuxinotify

c++ - Monitor mount folder in linux


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.


Solution

  • None of the common remote filesystems support notification.

    The only general way to monitor a remote directory is via polling.