是。我在常量/ FSEventStreamEventFlags
下的FSEvents Reference中找到了以下内容
请仔细查看,以便查看每个标志的说明。起初我有点困惑,但后来我意识到你只会得到一些这些事件,这取决于你如何设置流。如果您将其设置为NOT get file events,那么您只能获得事件的前半部分。如果你把它设置为获取文件事件,那么你只能获得下半部分(据我所知并注意到)。
- kFSEventStreamEventFlagNone
- kFSEventStreamEventFlagMustScanSubDirs
- kFSEventStreamEventFlagUserDropped
- kFSEventStreamEventFlagKernelDropped
- kFSEventStreamEventFlagEventIdsWrapped
- kFSEventStreamEventFlagHistoryDone
- kFSEventStreamEventFlagRootChanged
- kFSEventStreamEventFlagMount
- kFSEventStreamEventFlagUnmount
- kFSEventStreamEventFlagItemCreated
- kFSEventStreamEventFlagItemRemoved
- kFSEventStreamEventFlagItemInodeMetaMod
- kFSEventStreamEventFlagItemRenamed
- kFSEventStreamEventFlagItemModified
- kFSEventStreamEventFlagItemFinderInfoMod
- kFSEventStreamEventFlagItemChangeOwner
- kFSEventStreamEventFlagItemXattrMod
- kFSEventStreamEventFlagItemIsFile
- kFSEventStreamEventFlagItemIsDir
- kFSEventStreamEventFlagItemIsSymlink