Search code examples
c++filesystemscross-platformfilesystemwatcher

Cross platform C++ filesystem watcher


I'm looking for a cross platform file system watcher, similar to the FileSystemWatcher class in .NET. As it's for a daemon/service, I'm not keen on Qt's QFileSystemWatcher. I'd really like to avoid it as I don't want to have a dependency on Qt as my program is going to be a daemon.

I've also seen a proposal for such a class to be included in Boost, but as far as I know such a class has not yet been included.

Is there a cross platform C++ file system watcher?


Solution

  • Qt is divided into modules, so using this feature doesn't mean you have to use the GUI library.

    QFileSystemWatcher is in QtCore, which has no GUI functionality.