- addRef
void addRef(WatcherID descriptor)
Undocumented in source. Be warned that the author may not have intended to support it.
- dispose
void dispose()
Undocumented in source. Be warned that the author may not have intended to support it.
- isValid
bool isValid(WatcherID handle)
Undocumented in source. Be warned that the author may not have intended to support it.
- rawUserData
void* rawUserData(WatcherID descriptor, size_t size, DataInitializer initialize, DataInitializer destroy)
Undocumented in source. Be warned that the author may not have intended to support it.
- releaseRef
bool releaseRef(WatcherID descriptor)
Undocumented in source. Be warned that the author may not have intended to support it.
- watchDirectory
WatcherID watchDirectory(string path, bool recursive, FileChangesCallback on_change)
Undocumented in source. Be warned that the author may not have intended to support it.
Generic directory watcher implementation based on periodic directory scanning.
Note that this implementation, although it works on all operating systems, is not efficient for directories with many files, since it has to keep a representation of the whole directory in memory and needs to list all files for each polling period, which can result in excessive hard disk activity.