Platforms to show: All Mac Windows Linux Cross-Platform

Back to FSEventsMBS class.

Previous items

FSEventsMBS.kFSEventStreamEventFlagRootChanged = 32

Type Topic Plugin Version
const Folder Change Watching MBS MacFrameworks Plugin 8.1
One of the flag values you can get on the callback event.

Denotes a special event sent when there is a change to one of the directories along the path to one of the directories you asked to watch. When this flag is set, the event ID is zero and the path corresponds to one of the paths you asked to watch (specifically, the one that changed). The path may no longer exist because it or one of its parents was deleted or renamed. Events with this flag set will only be sent if you passed the flag kFSEventStreamCreateFlagWatchRoot to the constructor when you created the stream.

FSEventsMBS.kFSEventStreamEventFlagUnmount = 128

Type Topic Plugin Version
const Folder Change Watching MBS MacFrameworks Plugin 8.1
One of the flag values you can get on the callback event.

Denotes a special event sent when a volume is unmounted. The path in the event is the path to the directory from which the volume was unmounted. You will receive one of these notifications for every volume unmount event inside the kernel. This is not a substitute for the notifications provided by the DiskArbitration framework; you only get notified after the unmount has occurred. Beware that unmounting a volume could uncover an arbitrarily large directory hierarchy, although Mac OS X never does that.

FSEventsMBS.kFSEventStreamEventFlagUserDropped = 2

Type Topic Plugin Version
const Folder Change Watching MBS MacFrameworks Plugin 8.1
One of the flag values you can get on the callback event.

The kFSEventStreamEventFlagUserDropped or kFSEventStreamEventFlagKernelDropped flags may be set in addition to the kFSEventStreamEventFlagMustScanSubDirs flag to indicate that a problem occurred in buffering the events (the particular flag set indicates where the problem occurred) and that the client must do a full scan of any directories (and their subdirectories, recursively) being monitored by this stream. If you asked to monitor multiple paths with this stream then you will be notified about all of them. Your code need only check for the kFSEventStreamEventFlagMustScanSubDirs flag; these flags (if present) only provide information to help you diagnose the problem.

Previous items

The items on this page are in the following plugins: MBS MacFrameworks Plugin.


💬 Ask a question or report a problem
The biggest plugin in space...