I'm currently developing a C++ application which should monitor the file system to reindex a set of files when they change. I am currently using Linux' inotify system, but would like the application to be as broadly portable to other systems as possible.

Do you know of high-level, portable filesystem monitoring libraries, which would work at least on Linux and Mac OSX? (and have C or C++ bindings?)

有帮助吗?

解决方案

There is Qt with QFileSystemWatcher

QFileSystemWatcher Class

The QFileSystemWatcher class provides an interface for monitoring files and directories for modifications. More...

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top