FileWatcher /

#includecinder/FileWatcher.h

FileMonitor provides a system for monitoring the filesystem for changes at runtime using callbacks.

Performs file watching asynchronously, however all callbacks will be emitted on the main thread. It is advisable to capture the resulting signals::Connection with with some sort of scope controlling to ensure that your callbacks are disconnected when your object is destroyed.

See Also

signals::ScopedConnection , signals::ConnectionList .

any argument that takes an fs::path considers that operation to be global, that is any and all watches in place that include that file with be affected (examples are unwatch() and disable() ). If you want to disable a single instance of a watch on a specific file, you can use the returned Connection's disable() or disconnect() methods.


Public Member Functions

  • FileWatcher ()
  • ~FileWatcher ()

Static Public Member Functions