2

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?)

François Févotte
  • 19,520
  • 4
  • 51
  • 74
  • Maybe `boost::filesystem`? I didn't really check for this specific functionality. – Siyuan Ren Sep 10 '13 at 08:27
  • @C.R. thanks, but it looks like boost::filesystem only helps for common filesystem manipulations (manipulate paths, list directories, ...) It doesn't seem to monitor events. – François Févotte Sep 10 '13 at 12:03

1 Answers1

2

There is Qt with QFileSystemWatcher

QFileSystemWatcher Class

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

Community
  • 1
  • 1
RedX
  • 14,749
  • 1
  • 53
  • 76