About
The maxon::FileMonitor class can be used to watch a certain folder. If a file in that folder is changed, a delegate is called.
- Warning
- The events observed and messages sent depend on the OS.
FileMonitor
maxon::FileMonitor::WatchDirectory() is used to watch the given folder.
maxon::FileMonitorItemRef g_directoryWatch;
{
{
};
g_directoryWatch = nullptr;
}
static void ClearWatcher()
{
g_directoryWatch = nullptr;
}
Further Reading