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;
}
static MAXON_METHOD Result< FileMonitorItemRef > WatchDirectory(const Url &url, Bool watchSubtree, Observer &&observer)
STATE
Types of CaptureDevices.
Definition: filemonitor.h:33
PyArena _PyASTOptimizeState * state
Definition: compile.h:99
return OK
Definition: apibase.h:2735
#define DiagnosticOutput(formatString,...)
Definition: debugdiagnostics.h:170
#define MAXON_SOURCE_LOCATION
Definition: memoryallocationbase.h:67
#define MAXON_INITIALIZATION(...)
Definition: module.h:875
@ DIRECTORY
Url is a directory, you can use GetBrowseIterator to iterate through the children.
#define iferr_scope
Definition: resultbase.h:1389
#define iferr_return
Definition: resultbase.h:1524
Further Reading